<?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 : Dynamically creating toolbar with images</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Dynamically creating toolbar with images]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 08:28:14 +0000</pubDate>
  <lastBuildDate>Tue, 23 Mar 2010 15:43:39 +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=16499</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[Dynamically creating toolbar with images : I have got it I think:   HBITMAP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16499&amp;PID=57751&amp;title=dynamically-creating-toolbar-with-images#57751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 16499<br /><strong>Posted:</strong> 23 March 2010 at 3:43pm<br /><br />I have got it I think:<br /><table width="99%"><tr><td><pre class="BBcode"><br />HBITMAP hBitmap = CXTPImageManagerIcon::LoadBitmapFromFile( "d:\\image.png" );<br /><br />CXTPImageManagerIconHandle hIcon( hBitmap );<br />UINT uIconID = m_wndToolBar.GetImageManager()-&gt;AddCustomIcon( hIcon );<br /><br />pControl-&gt;SetIconId( uIconID );<br /></pre></td></tr></table><br /><br />Seems to work okay. But do I need to free or release this bitmap at all?]]>
   </description>
   <pubDate>Tue, 23 Mar 2010 15:43:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16499&amp;PID=57751&amp;title=dynamically-creating-toolbar-with-images#57751</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamically creating toolbar with images : I am creating a plugin system...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16499&amp;PID=57750&amp;title=dynamically-creating-toolbar-with-images#57750</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 16499<br /><strong>Posted:</strong> 23 March 2010 at 3:16pm<br /><br />I am creating a plugin system for my app and one of the things is for the plugin to be able to specify the buttons on a toolbar with caption and images.<br /><br />What I need to know is how do I load a toolbar control with an image from a file?<br /><br /><table width="99%"><tr><td><pre class="BBcode">VERIFY( m_wndToolBar.CreateToolBar( WS_TABSTOP | WS_VISIBLE | WS_CHILD | CBRS_TOOLTIPS | CBRS_SIZE_DYNAMIC, this ) );<br />m_wndToolBar.SetBarID( IDR_TOOLBAR );<br /><br />CXTPControl *pControl = m_wndToolBar.GetControls()-&gt;Add(xtpControlButton, ID_TOOLBAR_NEW);<br />pControl-&gt;SetBeginGroup( TRUE );<br />pControl-&gt;SetStyle( xtpButtonIconAndCaption );<br /></pre></td></tr></table><br /><br />So with the above example I was looking for something like:<br /><table width="99%"><tr><td><pre class="BBcode">pControl-&gt;LoadIcon( "d:\image.png" );</pre></td></tr></table>]]>
   </description>
   <pubDate>Tue, 23 Mar 2010 15:16:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16499&amp;PID=57750&amp;title=dynamically-creating-toolbar-with-images#57750</guid>
  </item> 
 </channel>
</rss>