Button Ownerdraw - Transparency Issue
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
- I've created a CPngButton from CBitmapButton. - It overrides DrawItem() and draws the given PNG image using GDI+. - The wm_erasebkgnd and wm_ctlcolor is taken care. - while displaing the CMainFrame its displaying properly. - Later if we resize the window couple of times, the transparent portions of button becomes black. - OS is Windows 7 with Aero enabled. - Screenshot is here[^] - Any idea what I'm missing here? (Some more information: The buttons are hosted on a CWnd as container. This CWnd is placed over left of menubar to looks like a quick access toolbar, which is a requirement). Best Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.