<?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 : Problems with CXTToolBar::LoadBitmap()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Problems with CXTToolBar::LoadBitmap()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 23:05:42 +0000</pubDate>
  <lastBuildDate>Wed, 29 Oct 2003 03:40:31 +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=200</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[Problems with CXTToolBar::LoadBitmap() : My intention is to create dynamic...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=200&amp;PID=392&amp;title=problems-with-cxttoolbarloadbitmap#392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=24">Jonas</a><br /><strong>Subject:</strong> 200<br /><strong>Posted:</strong> 29 October 2003 at 3:40am<br /><br /><P>My intention is to create dynamic toolbars at run-time. However, the CXTToolBar::LoadBitmap() doesn't seem to work (i.e the button images does not show up). I tried the same code with&nbsp;MFC's CToolBar and&nbsp;that works perfectly.</P><P>Here is a snippet from my code:</P><P>&nbsp;static UINT BASED_CODE TB_IDS&#091;&#093; =<BR>&nbsp;{<BR>&nbsp;&nbsp;34500,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// ID_BUTTON1<BR>&nbsp;&nbsp;34501,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// ID_BUTTON2<BR>&nbsp;&nbsp;ID_SEPARATOR,<BR>&nbsp;&nbsp;34502,<BR>&nbsp;&nbsp;34503<BR>&nbsp;};</P><P>DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC;</P><P>m_wndDynToolBar.CreateEx(this, TBSTYLE_FLAT, dwStyle, CRect(0, 0, 0, 0), 59500)m_wndDynToolBar.LoadBitmap(IDB_TB);<BR>m_wndDynToolBar.SetButtons(TB_IDS, sizeof(TB_IDS) / sizeof(UINT));<BR>m_wndDynToolBar.SetWindowText(_T("Dynamic toolbar"));<BR></P><P>----------</P><P>IDB_TB is a 64x15 16 color bitmap. m_wndDynToolBar is a CXTToolBar instance.</P><P><strong>Update: The bitmap images show up if xtAfxData.bXPMode is set to FALSE. Not otherwise. <IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></strong></P><P>Regards,</P><P>Jonas E</P><span style="font-size:10px"><br /><br />Edited by Jonas</span>]]>
   </description>
   <pubDate>Wed, 29 Oct 2003 03:40:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=200&amp;PID=392&amp;title=problems-with-cxttoolbarloadbitmap#392</guid>
  </item> 
 </channel>
</rss>