<?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 : skin and bitmap in a dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : skin and bitmap in a dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 16:48:29 +0000</pubDate>
  <lastBuildDate>Wed, 21 Feb 2007 05:33:34 +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=6472</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[skin and bitmap in a dialog :  I would like toskin my MFC application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6472&amp;PID=20613&amp;title=skin-and-bitmap-in-a-dialog#20613</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1302">Dominique</a><br /><strong>Subject:</strong> 6472<br /><strong>Posted:</strong> 21 February 2007 at 5:33am<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana">I would like to&nbsp;skin my MFC application with the skin framework.</P><DIV>But i have a problem when i put a bitmap onto the background of a dialog box. In fact, some controls (like radio buttons) are not painted transparently.</DIV><DIV><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-family: 'Times New Roman'; mso-fareast-: EN-US; mso-bidi-: AR-SA"></SPAN>&nbsp;</DIV><DIV>Without applying skin, it works.</DIV><DIV>&nbsp;</DIV><DIV>In my code, OnCtlColor looks like this :</DIV><DIV>HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) <BR>{<BR>&nbsp;HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;if (nCtlColor == CTLCOLOR_STATIC || nCtlColor == CTLCOLOR_BTN)<BR>&nbsp;{<BR>&nbsp;&nbsp; pDC-&gt;SetBkMode( TRANSPARENT );<BR>&nbsp;&nbsp; return (HBRUSH)m_brStaticControl;//HOLLOW_BRUSH<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;return hbr</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance<o:p></o:p></SPAN></DIV>]]>
   </description>
   <pubDate>Wed, 21 Feb 2007 05:33:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6472&amp;PID=20613&amp;title=skin-and-bitmap-in-a-dialog#20613</guid>
  </item> 
 </channel>
</rss>