<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Transparent checkbox?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Transparent checkbox?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 18:08:20 +0000</pubDate>
  <lastBuildDate>Thu, 29 Mar 2007 04:05:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=6731</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Transparent checkbox? : Hi,  Attach modified project...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21545&amp;title=transparent-checkbox#21545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6731<br /><strong>Posted:</strong> 29 March 2007 at 4:05am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Attach modified project and I will point what you do wrong.</DIV>]]>
   </description>
   <pubDate>Thu, 29 Mar 2007 04:05:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21545&amp;title=transparent-checkbox#21545</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent checkbox? : It&amp;#039;s not working :(. Even...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21543&amp;title=transparent-checkbox#21543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6731<br /><strong>Posted:</strong> 29 March 2007 at 3:24am<br /><br />It's not working :(. Even if I subclass CButton and override WM_CTLCOLOR, as you described, I do not get this message. Neither is it handled in CMyWindow::PreTranslateMessage.<DIV>&nbsp;</DIV><DIV>WM_CTLCOLOR is not sent to the parent window. What can be the reason for this? This is what I know:</DIV><DIV>1) My parent window is a modeless dialog (most of the code was taken from CColorSelectorCtrl).</DIV><DIV>2) My check box is created dynamically in CMyWindow::Create(...).</DIV><DIV>&nbsp;</DIV><DIV>To reproduce this, all you need to do is adding a check box in the color picker control and then try making it transparent.</DIV><DIV>&nbsp;</DIV><DIV>Any ideas? Thanks.</DIV>]]>
   </description>
   <pubDate>Thu, 29 Mar 2007 03:24:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21543&amp;title=transparent-checkbox#21543</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent checkbox? : I&amp;#039;ve done some testing, and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21501&amp;title=transparent-checkbox#21501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6731<br /><strong>Posted:</strong> 27 March 2007 at 9:22am<br /><br />I've done some testing, and it seems that <FONT face="Courier New, Courier, mono">WM_CTLCOLOR</FONT> is only sent to the parent window if it has been created from a dialog resource. My <FONT face="Courier New, Courier, mono">CWnd</FONT>-derived class does not receive this message. Do you know the cause of this?<DIV>&nbsp;</DIV><DIV>Anyway, I will try your solution, though I did not want to create another button class <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0">.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your advice!</DIV>]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 09:22:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21501&amp;title=transparent-checkbox#21501</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent checkbox? : Hi,  WM_CTLCOLOR is sent to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21480&amp;title=transparent-checkbox#21480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6731<br /><strong>Posted:</strong> 27 March 2007 at 1:14am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>WM_CTLCOLOR is sent to parent of button. In button you can catch reflected message:</DIV><DIV>&nbsp;</DIV><DIV>ON_WM_CTLCOLOR_REFLECT()<BR></DIV><DIV>HBRUSH <FONT face="Courier New">CMyDerivedWnd</FONT>::CtlColor(CDC* pDC, UINT nCtlColor) <BR>{<BR><PRE><CODE>pDC-&gt;SetTextColor( m_clrText );    // textpDC-&gt;SetBkColor( m_clrBkgnd );    // text bkgndreturn m_brBkgnd;                // ctl bkgnd</CODE></PRE><BR>}<BR></DIV>]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 01:14:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21480&amp;title=transparent-checkbox#21480</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent checkbox? : Hi, The problem is that WM_CTLCOLOR...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21464&amp;title=transparent-checkbox#21464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6731<br /><strong>Posted:</strong> 26 March 2007 at 12:04pm<br /><br /><P>Hi,</P><P>The problem is that WM_CTLCOLOR is not received. I've tried to capture WM_CTLCOLORBTN too, with no success.</P><DIV>Here is my code:</DIV><DIV>&nbsp;</DIV><DIV>In the message map of my CWnd-derived class: ON_WM_CTLCOLOR()</DIV><DIV>&nbsp;</DIV><DIV>CMyDerivedWnd::Create(...):</DIV><DIV><FONT face="Courier New, Courier, mono">m_button.CreateEx(WS_EX_TRANSPARENT, _T("BUTTON"), _T("&amp;Transparency?"), WS_VISIBLE | WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | <FONT color=#ff0000>BS_CHECKBOX</FONT>, rcButton, this, IDC_MYBUTTON);</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">HBRUSH CMyDerivedWnd::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)<BR>{</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; <FONT color=#336600>// Never called... could this be due to the BS_CHECKBOX style?</FONT><BR>&nbsp;&nbsp;&nbsp; return CWnd::OnCtlColor(pDC, pWnd, nCtlColor);<BR>}</FONT></DIV><DIV>&nbsp;</DIV><DIV>Any ideas? What am I missing here?</DIV>]]>
   </description>
   <pubDate>Mon, 26 Mar 2007 12:04:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21464&amp;title=transparent-checkbox#21464</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent checkbox? : Hi,  in MSDN see WM_CTLCOLOR...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21456&amp;title=transparent-checkbox#21456</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6731<br /><strong>Posted:</strong> 26 March 2007 at 10:36am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>in MSDN see WM_CTLCOLOR description/sample.</DIV>]]>
   </description>
   <pubDate>Mon, 26 Mar 2007 10:36:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21456&amp;title=transparent-checkbox#21456</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent checkbox? : I have a CWnd-derived window with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21452&amp;title=transparent-checkbox#21452</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6731<br /><strong>Posted:</strong> 26 March 2007 at 9:12am<br /><br /><DIV>I have a CWnd-derived window with a black background. Inside this window, I have a checkbox (CButton) with the WS_EX_TRANSPARENT style set. Of course, the rectangle of this checkbox is excluded in CMyWindow::OnPaint, using ExcludeClipRect.</DIV><DIV>&nbsp;</DIV><DIV>Why does my checkbox look like this? How do I make it transparent?</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20070326_090842_transparency_pr.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Mon, 26 Mar 2007 09:12:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6731&amp;PID=21452&amp;title=transparent-checkbox#21452</guid>
  </item> 
 </channel>
</rss>