<?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 : CXTButtom::SetBitmap problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTButtom::SetBitmap problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:02:14 +0000</pubDate>
  <lastBuildDate>Wed, 14 Oct 2009 01:59:49 +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=15318</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[CXTButtom::SetBitmap problem : Thanks But why? In previous codeJock...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15318&amp;PID=53852&amp;title=cxtbuttomsetbitmap-problem#53852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1194">Vero</a><br /><strong>Subject:</strong> 15318<br /><strong>Posted:</strong> 14 October 2009 at 1:59am<br /><br />Thanks<DIV>But why? In previous codeJock versions this works perfectly!</DIV><DIV>&nbsp;</DIV><DIV>Anyone else have an answer? </DIV>]]>
   </description>
   <pubDate>Wed, 14 Oct 2009 01:59:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15318&amp;PID=53852&amp;title=cxtbuttomsetbitmap-problem#53852</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButtom::SetBitmap problem : Not familiar with v9. But you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15318&amp;PID=53816&amp;title=cxtbuttomsetbitmap-problem#53816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 15318<br /><strong>Posted:</strong> 13 October 2009 at 10:09am<br /><br />Not familiar with v9. But you might have to load the bitmap yourself and do the following:<DIV>&nbsp;</DIV><DIV><FONT size=2><P>BITMAP bm = {0};</P><P>::GetObject( m_hbmImage, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>sizeof</FONT></FONT><FONT size=2>(bm), &amp;bm );</P><P></P><P>CBitmap bmpIcon;</P><P>bmpIcon.Attach(m_hbmImage);</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// bmpIcon dtor will delete the GDI bitmap object for me</FONT></FONT><FONT size=2></P><P>CSize iconSize(bm.bmWidth, bm.bmHeight);</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// convert the bitmap to a transparent icon.</P></FONT></FONT><FONT size=2><P>HICON hIcon = CXTPTransparentBitmap(bmpIcon).ConvertToIcon();</P><P>CXTPImageManagerIconHandle hIconHandle; </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// do not set equal to hIcon here or it will NOT destrory the icon</P></FONT></FONT><FONT size=2><P></P><P>hIconHandle = hIcon; </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Will call DestoyIcon - SetIcon will make a copy so that is OK;</P><DIV>// call SetIcon member of xtpbutton</FONT></FONT><FONT size=2></FONT></DIV><DIV><FONT size=2>SetIcon(iconSize, hIconHandle, CXTPImageManagerIconHandle(), FALSE);</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 13 Oct 2009 10:09:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15318&amp;PID=53816&amp;title=cxtbuttomsetbitmap-problem#53816</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButtom::SetBitmap problem : Hello,   I havea problem with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15318&amp;PID=53690&amp;title=cxtbuttomsetbitmap-problem#53690</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1194">Vero</a><br /><strong>Subject:</strong> 15318<br /><strong>Posted:</strong> 08 October 2009 at 4:31am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV><DIV>I have&nbsp;a problem with SetBitmap in a CXTButton.&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I have&nbsp;next source:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>m_button.SetBitmap(CSize(32,32), IDB_SAVE);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>IDB_SAVE is a 32bpp (with alpha channel) bitmap added to my resources.</DIV><DIV></DIV><P>My problem is that I have the disabled button in black!</P><DIV></DIV><P><DIV></DIV><DIV></DIV>In previous versions (v9.81) this works fine! Please, can you help me?</FONT> </P></DIV>]]>
   </description>
   <pubDate>Thu, 08 Oct 2009 04:31:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15318&amp;PID=53690&amp;title=cxtbuttomsetbitmap-problem#53690</guid>
  </item> 
 </channel>
</rss>