Re: WM_CTLCOLORBTN message

carr 帅 <shuaixh-/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>

--- 09年9月1日,周二, Jim Barry <[email protected]> 写道:

发件人: Jim Barry <[email protected]>
主题: Re: [wtl] WM_CTLCOLORBTN message
收件人: [email protected]
日期: 2009年9月1日,周二,下午8:28






 




    
                  Radio buttons actually send WM_CTLCOLORSTATIC, not WM_CTLCOLORBTN.


oh, yes.  but i still fail to set the radio button's background transparent;
my codes:
 //Create a null brush
m_brush.m_hBrush = (HBRUSH)::GetStockObject(HOLLOW_BRUSH);
//the message map
MSG_WM_CTLCOLORSTATIC(OnCtlColorDlg)

// message handler
HBRUSH CMainDlg::OnCtlColorDlg(CDCHandle dc, CWindow wnd)
{
    dc.SetBkMode(TRANSPARENT);
    dc.SetTextColor(RGB(255, 255, 255));

    return m_brush;
}------------------------the above codes works well with a STATIC control.but leave the radio buttons a black background ,not transparent.

-




      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

[Non-text portions of this message have been removed]



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

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.