OnCtlColor and NULL_BRUSH with clear type text

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi, <br/> <br/> In an OnCtlColor from a ON_WM_CTLCOLOR() message, returning GetStockObject(NULL_BRUSH) has the desired effect of making the controls background transparent so you can see the underlying dialog.<br/> <br/> This works, however the issue is if you have clear type or any control that does a form of aliasing, you get a "bleed buildup" when you move the cursor over them.<br/> <br/> You can see the example of it http://i270.photobucket.com/albums/jj96/TheJackal882/Code/Animation1.gif here <br/> <br/> <img src="http://i270.photobucket.com/albums/jj96/TheJackal882/Code/Animation1.gif" alt=" <br/> <br/> Also any ideas why the scroll bars appear black and the grouping thing "Closing" has its line through it ?<br/> <br/> Note I am using the MFC feature pack and themes.<br/> <br/> Thanks

View the full article
 
Back
Top