Re: WM_CTLCOLORBTN message
"Jim Barry" <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <A3D7CCC37AFF4DEFADEDE0C569AB624D@jbarry> |
Constantin Bryzgalin wrote:
> it's really a problem with most common controls: they don't deal well
> with transparency. what you really need to do is capture a part of the
> background picture that lies underneath the radiobutton, create a
> pattern brush from it and let it use that to 'paint' background.
That's what v6 "themed" common controls do - they send WM_PRINTCLIENT to
draw the parent background into a buffer, then composite the control on top.
Unfortunately, it doesn't work properly with all themes. For example, the
Zune theme doesn't send WM_PRINTCLIENT when compositing buttons, so they
have a nasty light-coloured edge when shown on anything other than the
default dialog background :(
--
Jim Barry, Microsoft MVP
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/