<?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 : Change appearance of bitmap button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Change appearance of bitmap button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:35:14 +0000</pubDate>
  <lastBuildDate>Thu, 28 Jul 2011 09:33:14 +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=18735</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[Change appearance of bitmap button : The issue was solved. Thanks for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18735&amp;PID=65547&amp;title=change-appearance-of-bitmap-button#65547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6872">VC++PROGRAMMER</a><br /><strong>Subject:</strong> 18735<br /><strong>Posted:</strong> 28 July 2011 at 9:33am<br /><br />The issue was solved. Thanks for the quick reply...........<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" title="Smile" alt="Smile" /><DIV>&nbsp;</DIV><DIV>For those with similar issue, i have given my code below.....</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">/***RESOURCE.RC ***/</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;&nbsp; PUSHBUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "",IDC_RECORD,58,43,15,14 ,WS_GROUP&nbsp; </FONT></DIV><DIV><FONT face="Courier New, Courier, mono"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">/***&nbsp;VIEWCLASS.H&nbsp;***/</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;CXTButton&nbsp;&nbsp; &nbsp;m_btRecord;</FONT></DIV><DIV><FONT face="Courier New, Courier, mono"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">/***&nbsp;VIEWCLASS.CPP ***/</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">/*** In ViewClass::::OnInitDialog( WPARAM, LPARAM ) ***/</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;m_btRecord.SetTheme(xtThemeDefault);<BR>&nbsp;m_btRecord.SetXButtonStyle(BS_XT_WINXP_COMPAT);</FONT></DIV><DIV><FONT face="Courier New, Courier, mono"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">/*** In ViewClass::OnCreate(LPCREATESTRUCT lpCreateStruct) ***/</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;m_btRecord.SetBitmap( CSize(10,10), IDB_RECORD_NORMAL );<BR>&nbsp;m_btRecord.SetBorderGap( 6 );</FONT></DIV><DIV>&nbsp;</DIV><DIV>Hope this would help someone who is new to VC++ like me.</DIV>]]>
   </description>
   <pubDate>Thu, 28 Jul 2011 09:33:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18735&amp;PID=65547&amp;title=change-appearance-of-bitmap-button#65547</guid>
  </item> 
  <item>
   <title><![CDATA[Change appearance of bitmap button : Guess you need change m_btReco...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18735&amp;PID=65536&amp;title=change-appearance-of-bitmap-button#65536</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 18735<br /><strong>Posted:</strong> 28 July 2011 at 1:39am<br /><br />Guess you need change m<span ="Apple-style-span" style="font-family: 'Courier New', Courier, mono; : rgb248, 248, 252; ">_btRecord.SetTheme(xtThemeOffice2003); to WinXP style. check Buttons sample for list of themes.</span>]]>
   </description>
   <pubDate>Thu, 28 Jul 2011 01:39:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18735&amp;PID=65536&amp;title=change-appearance-of-bitmap-button#65536</guid>
  </item> 
  <item>
   <title><![CDATA[Change appearance of bitmap button :  Our company has been using Xtreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18735&amp;PID=65516&amp;title=change-appearance-of-bitmap-button#65516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6872">VC++PROGRAMMER</a><br /><strong>Subject:</strong> 18735<br /><strong>Posted:</strong> 27 July 2011 at 9:34am<br /><br /><DIV>&nbsp;</DIV><DIV>Our company has been using Xtreme ToolkitPro v11.2.2 for 5 yrs to provide skin for our VC++ SDI application. We created bitmap buttons using the class CXTButton as follows:</DIV><DIV><BR>/*********************************************************/&nbsp;<BR><FONT face="Courier New, Courier, mono">DDX_Control(pDX, IDC_RECORD, m_btRecord);</FONT></DIV><P><FONT face="Courier New, Courier, mono">// In ViewClass::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR>m_btRecord.SetBitmap( CSize(10,10), IDB_RECORD );//&nbsp; IDB_RECORD is the bitmap resource<BR>m_btRecord.SetBorderGap( 7 );<BR>m_btRecord.SetXButtonStyle( m_btRecord.GetXButtonStyle() &amp; ~BS_XT_SHOWFOCUS );<BR>m_btRecord.SetTheme(xtThemeOffice2003);<BR></FONT>/********************************************************/<BR>Now we want to change the style of the button from flat to pushbutton style as follows:</P><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT face="Arial, Helvetica, sans-serif">Current&nbsp;</FONT><FONT face="Geneva, Arial, Helvetica, sans-serif" size=2>CXTButton&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Button style required</FONT></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://forum.codejock.com/uploads/6872/Recordold.JPG" height="23" width="23" hspace="70" border="0" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="http://forum.codejock.com/uploads/6872/Recordnew1.JPG" height="23" width="26" hspace="120" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>It has to look like a normal cbutton with an image on it. We tried many methods but failed. Can&nbsp;anyone please please suggest a method to do this ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks.....<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" title="Smile" alt="Smile" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 27 Jul 2011 09:34:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18735&amp;PID=65516&amp;title=change-appearance-of-bitmap-button#65516</guid>
  </item> 
 </channel>
</rss>