We help IT Professionals succeed at work.
Get Started

Ownerdrawn buttons in only 16bit?

M204 asked
Last Modified: 2013-11-20
I'm using owner drawing on a button, catching the WM_DRAWITEM message and rendering various bitmaps/text to the hdc. My problem is that I am trying to use the ANTIALIASED_QUALITY flag on a font which fails to draw the text antialised.

I have the following:

HDC hMemDC = CreateCompatibleDC(lpdis->hDC);
int i = GetDeviceCaps(hBmpDC,BITSPIXEL);

GetDeviceCaps returns 16; does this indicate that my HDC is only 16bit? Perhaps this is why the antialising isn't working, as I understand this needs to be at least 24bit? How can I accomplish this?

Appreciate any suggestions.
Watch Question
Freelance programmer / Consultant
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE