On 11/10/05, Michael Kaufmann hallo@michael-kaufmann.ch wrote:
I've already created a little test program: Windows draws the background behind the icon, but not the entire client area. It should be easy to modify the existing code.
Yes, I see what you are talking about now.
Your second patch (background for bitmaps in static controls) leaks the handle of the brush if GetPixel succeeds. If GetPixel fails you use the brush returned by SendMessage - but my test program shows that Windows doesn't paint the background at all in this case.
I wasn't sure about that. Should I fix my patches and resend them to the list? Can you see anything wrong with my other patches?
Regards Michael
Thankyou for your help, n0dalus.