December 2nd, 2012, 01:51 AM
[RESOLVED] Trying to display anti-aliased PARGB bitmaps in a menu
I'm attaching a project that demonstrates the issue. I need to display a context menu with anti-aliased bitmaps. I wrote my own method to convert an icon into a bitmap (see the CreatePARGBBitmapFromIcon() method) but the resulting bitmap seems to lose all anti-aliasing when displayed in a menu. What is interesting is that the same bitmap is displayed without any issues in a CStatic 'stPic1' control (the one in the middle.) The visual artifact also seems to be different on different OS. Take a look at the screenshots attached.
Any idea what am I doing wrong here?
December 3rd, 2012, 10:21 PM
Re: Trying to display anti-aliased PARGB bitmaps in a menu
OK, nevermind. Fixed it... took over 2 days to straighten it out (thanks to people from Stackoverflow.) For whoever is interested, a working solution is attached to this post...
Click Here to Expand Forum to Full Width