Link to home
Start Free TrialLog in
Avatar of M204
M204

asked on

Ownerdrawn buttons in only 16bit?

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:

LPDRAWITEMSTRUCT lpdis = (DRAWITEMSTRUCT*)lParam;
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.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial