Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Button Ownerdraw - Transparency Issue

$
0
0
- 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.
 
- It looks like... 

- 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. Completely revamped!


Viewing all articles
Browse latest Browse all 15302


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>