Re: WM_CTLCOLORBTN message

Constantin Bryzgalin <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Hello,

> the above codes works well with a STATIC
> control.but leave the radio buttons a black background ,not transparent.

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.

or alternatively you may paint captured picture part in WM_CTLCOLOR
handler and return NULL_BRUSH. this may be a little bit easier to
code.

p.s. after messing with radiobutton transparency for several days I
just asked our UI designer to always make radiobutton background solid
whenever possible. :-)

-- 
Constantin Bryzgalin
http://www.oneclicktools.com





------------------------------------

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.