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,BITSP IXEL);
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.
I have the following:
LPDRAWITEMSTRUCT lpdis = (DRAWITEMSTRUCT*)lParam;
HDC hMemDC = CreateCompatibleDC(lpdis->
int i = GetDeviceCaps(hBmpDC,BITSP
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.