<?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 : CXTPButton and BS_ICON</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPButton and BS_ICON]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 05:12:52 +0000</pubDate>
  <lastBuildDate>Tue, 09 Sep 2008 12:55:52 +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=12117</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[CXTPButton and BS_ICON : I want to have some radio buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12117&amp;PID=40857&amp;title=cxtpbutton-and-bs-icon#40857</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 12117<br /><strong>Posted:</strong> 09 September 2008 at 12:55pm<br /><br />I want to have some radio buttons with icons instead of text - I set the BS_ICON style on the control and called SetIcon() in my dialog app, but nothing happened.&nbsp; I changed the variable type to CButton and my icon appeared, but I get no alpha channel.&nbsp; <DIV>&nbsp;</DIV><DIV>I added BS_ICON to the icons in the "controls" sample and get no icon there, either.&nbsp; I couldn't find any samples that even had BS_ICON, so I'm curious --- How do I do that?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><DIV>&nbsp;</DIV><DIV>- David</DIV><DIV>&nbsp;</DIV><DIV>&lt;Late Afternoon Update&gt;</DIV><DIV>&nbsp;</DIV><DIV>I got it to draw an icon, but only one with <strong>BS_ICON | BS_PUSHLIKE</strong> defined and loaded with</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV><FONT color=#020002 size=2><FONT color=#020002 size=2><P>HICON hIcon</FONT></FONT><FONT size=2> = ::</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>LoadIcon</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>iconInst</FONT></FONT><FONT size=2>,</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>MAKEINTRESOURCE</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>iconIds&#091;</FONT></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>x</FONT></FONT><FONT size=2>&#093;.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>icon</FONT></FONT><FONT size=2>));</P><DIV></FONT><FONT size=2><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>BOOL bFoundIcon = (hIcon ? TRUE : FALSE);</P><DIV>CXTPButton</FONT></FONT><FONT size=2>* </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>button</FONT></FONT><FONT size=2> = (</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>CXTPButton</FONT></FONT><FONT size=2>*)</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>GetDlgItem</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>iconIds</FONT></FONT><FONT size=2>&#091;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>x</FONT></FONT><FONT size=2>&#093;.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>cmd</FONT></FONT><FONT size=2>);</DIV><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>button</FONT></FONT><FONT size=2> &amp;&amp; </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>button</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>GetSafeHwnd</FONT></FONT><FONT size=2>())</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>bFoundIcon</FONT></FONT><FONT size=2>)</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>button</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>SetIcon</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>sz32</FONT></FONT><FONT size=2>,</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>hIcon</FONT></FONT><FONT size=2>);</P><DIV></FONT>}</DIV><DIV>// other code deleted...</DIV><DIV></pre></td></tr></table></DIV></DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;and not when loaded with </DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><FONT color=#008000 size=2><FONT color=#008000 size=2><FONT color=#008000 size=2><FONT color=#008000 size=2><P>CXTPImageManagerIconHandle hIcon;</P><P></FONT></FONT>BOOL bFoundIcon = hIcon.CreateIconFromResource(iconInst,MAKEINTRESOURCE(iconIds&#091;x&#093;.icon),sz32, TRUE)</P><DIV>// seticon code same as above....<DIV></DIV></pre></td></tr></table></DIV><DIV>I'd really like to remove the BS_PUSHLIKE flag so I could get a radio button with an icon beside it.</DIV><DIV>Any ideas?</DIV><DIV>&nbsp;</DIV><DIV>- Thanks!</FONT></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 09 Sep 2008 12:55:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12117&amp;PID=40857&amp;title=cxtpbutton-and-bs-icon#40857</guid>
  </item> 
 </channel>
</rss>