<?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 : how to add an image to toolbar ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : how to add an image to toolbar ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 00:59:06 +0000</pubDate>
  <lastBuildDate>Fri, 15 Oct 2010 00:42:06 +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=17324</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[how to add an image to toolbar ? : Hi,Try CXTPControlLabel instead.Set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60914&amp;title=how-to-add-an-image-to-toolbar#60914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 15 October 2010 at 12:42am<br /><br />Hi,<div><br></div><div>Try CXTPControlLabel instead.&nbsp;</div><div><br></div><div>Set its ID to some ID_LED and set this bitmap to imagemaanger of CommandBars.</div>]]>
   </description>
   <pubDate>Fri, 15 Oct 2010 00:42:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60914&amp;title=how-to-add-an-image-to-toolbar#60914</guid>
  </item> 
  <item>
   <title><![CDATA[how to add an image to toolbar ? : I use the following code: //...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60912&amp;title=how-to-add-an-image-to-toolbar#60912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3668">lovelypp</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 14 October 2010 at 8:04pm<br /><br /><DIV>I use the following code:</DIV><DIV>&nbsp;// Create ToolBar<BR>&nbsp;CXTPToolBar* pToolBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T("标准工具栏"), xtpBarTop);<BR>&nbsp;if(!pToolBar || !pToolBar-&gt;LoadToolBar(IDR_MAINFRAME))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create toolbar\n");<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;}<BR>&nbsp;m_wndLed.Create(_T(""), WS_CHILD | WS_VISIBLE | SS_BITMAP | SS_CENTERIMAGE, CRect(0, 0, 16, 16), this);<BR>&nbsp;CXTPControlCustom* pLedControl = CXTPControlCustom::CreateControlCustom(&amp;m_wndLed);<BR>&nbsp;pToolBar-&gt;GetControls()-&gt;Add(pLedControl);<BR></DIV><DIV>where m_wndLed is&nbsp;of CBitmapPicture&nbsp;from codeguru which support transparent.</DIV><DIV>&nbsp;</DIV><DIV>now the image is added correctly, but does not display correctly. see the following image:</DIV><DIV><img src="http://forum.codejock.com/uploads/3668/2010-10-15_8-02-58.jpg" height="93" width="190" border="0" /></DIV>]]>
   </description>
   <pubDate>Thu, 14 Oct 2010 20:04:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60912&amp;title=how-to-add-an-image-to-toolbar#60912</guid>
  </item> 
  <item>
   <title><![CDATA[how to add an image to toolbar ? : We want to display a led-on or...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60560&amp;title=how-to-add-an-image-to-toolbar#60560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3668">lovelypp</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 29 September 2010 at 12:25am<br /><br /><P>We want to display a led-on or a led-off (light) picture on the toolbar area.&nbsp; which just is a picture and not clickable.&nbsp; it's well if it can be stretched.</P><DIV>how? </DIV><DIV>thanks</DIV>]]>
   </description>
   <pubDate>Wed, 29 Sep 2010 00:25:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60560&amp;title=how-to-add-an-image-to-toolbar#60560</guid>
  </item> 
  <item>
   <title><![CDATA[how to add an image to toolbar ? : Hi,you want to stretch it ? check...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60500&amp;title=how-to-add-an-image-to-toolbar#60500</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 27 September 2010 at 7:36am<br /><br /><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Hi,</span><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">you want to stretch it ? check CustomThemes sample - it shows how to override paintmanagers for such things.</span></div>]]>
   </description>
   <pubDate>Mon, 27 Sep 2010 07:36:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60500&amp;title=how-to-add-an-image-to-toolbar#60500</guid>
  </item> 
  <item>
   <title><![CDATA[how to add an image to toolbar ? : I want to display a Image (for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60468&amp;title=how-to-add-an-image-to-toolbar#60468</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3668">lovelypp</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 25 September 2010 at 10:27am<br /><br />I want to display a Image (for example a led light) on the <strong>toolbar</strong>.<DIV>I have added a bmp resource (its id is IDB_RED_LED).</DIV><DIV>How? </DIV><DIV>thanks!</DIV>]]>
   </description>
   <pubDate>Sat, 25 Sep 2010 10:27:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17324&amp;PID=60468&amp;title=how-to-add-an-image-to-toolbar#60468</guid>
  </item> 
 </channel>
</rss>