<?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 : 24bit toolbar in the dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : 24bit toolbar in the dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 01:55:44 +0000</pubDate>
  <lastBuildDate>Mon, 06 Apr 2009 11:14:13 +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=13894</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[24bit toolbar in the dialog : Hi, Modify some our sample and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47610&amp;title=24bit-toolbar-in-the-dialog#47610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13894<br /><strong>Posted:</strong> 06 April 2009 at 11:14am<br /><br /><P>Hi,</P><DIV>Modify some our sample and attach it here.&nbsp; Maybe problem with bitmap you have.</DIV>]]>
   </description>
   <pubDate>Mon, 06 Apr 2009 11:14:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47610&amp;title=24bit-toolbar-in-the-dialog#47610</guid>
  </item> 
  <item>
   <title><![CDATA[24bit toolbar in the dialog : I commented out the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47559&amp;title=24bit-toolbar-in-the-dialog#47559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13894<br /><strong>Posted:</strong> 03 April 2009 at 4:19pm<br /><br />I commented out the following line:<DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//XTPImageManager()-&gt;SetIcons(IDR_MAINFRAME);</P></FONT></FONT></DIV><DIV>and also tried your suggestion:<BR></DIV><FONT size=2><P>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDR_BT_TOOLBAR, IDB_BT_TOOLBAR); </P><DIV>and also tried:<BR>pToolBar-&gt;GetImageManager()-&gt;SetIcons(IDR_BT_TOOLBAR, IDB_BT_TOOLBAR);<BR><BR>I also treid to move LoaToolBar before this and after this...<BR></DIV><DIV>the result is the same... no icons in the toolbar<BR><BR>the only difference between my code and the sample is that my parent is derived from CPropertyPage not from CXTPDialogBase and does not have InitCommandBars so I simply copied the code and pasted InitCommandBars implementation in my dialog class... It shouldn't make the difference - I went through this code and it really does not matter where it is implemented...</DIV><DIV>&nbsp;</DIV><DIV>...getting very frastrated... Help!</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 16:19:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47559&amp;title=24bit-toolbar-in-the-dialog#47559</guid>
  </item> 
  <item>
   <title><![CDATA[24bit toolbar in the dialog : so is there anybody that can tell...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47558&amp;title=24bit-toolbar-in-the-dialog#47558</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13894<br /><strong>Posted:</strong> 03 April 2009 at 4:09pm<br /><br />so is there anybody that can tell me what's wrong with this code? I also tried to call <DIV>pToolBar-&gt;GetImageManager()-&gt;SetIcons(m_ToolbarImageList, buttons, 7, Size(16,15), ...) and</DIV><DIV>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(m_ToolbarImageList, buttons, 7, Size(16,15), ...)</DIV><DIV>&nbsp;</DIV><DIV>I also treid to call LoadToolBar before that and adfter that... nothing helps - the toolbar does not show the icons from the image list...</DIV>]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 16:09:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47558&amp;title=24bit-toolbar-in-the-dialog#47558</guid>
  </item> 
  <item>
   <title><![CDATA[24bit toolbar in the dialog : Hi,  Maybe XTPImageManager()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47533&amp;title=24bit-toolbar-in-the-dialog#47533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13894<br /><strong>Posted:</strong> 03 April 2009 at 1:01am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Maybe XTPImageManager()-&gt;SetIcons(IDR_MAINFRAME); line override them ?</DIV><DIV>&nbsp;</DIV><DIV>Most easy way is to add line</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDR_BT_TOOLBAR, IDB_BT_TOOLBAR);&nbsp; it will load IDB_BT_TOOLBAR bitmap and willset it for IDR_BT_TOOLBAR icons.</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 01:01:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47533&amp;title=24bit-toolbar-in-the-dialog#47533</guid>
  </item> 
  <item>
   <title><![CDATA[24bit toolbar in the dialog : I changed the code to the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47509&amp;title=24bit-toolbar-in-the-dialog#47509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13894<br /><strong>Posted:</strong> 02 April 2009 at 1:54pm<br /><br />I changed the code to the following and it did not help, still getting toolbar displaying 16bit images from the toolbar resource, but not the 24bit images that I supply in a bitmap file (and make imagelist out of it):<DIV>&nbsp;</DIV><DIV>BOOL CMyDialog::OnInitDialog()</DIV><DIV>{</DIV><DIV>......................<BR></DIV><DIV>if<FONT size=2> (!InitCommandBars())</DIV><DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> FALSE;</DIV><P></FONT><FONT size=2>CXTPCommandBars* pCommandBars = m_pCommandBars;</P><DIV></FONT><FONT size=2>CXTPToolBar* pToolBar = pCommandBars-&gt;Add(_T(</FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>"Standard"</FONT></FONT><FONT size=2>), xtpBarTop);</DIV><P>pToolBar-&gt;LoadToolBar(IDR_BT_TOOLBAR);</P><DIV>&nbsp;</DIV><DIV>CBitmap bmp;<BR>bmp.LoadBitmap( IDB_BT_TOOLBAR );<BR>m_ToolbarImageList.Create( 16,15,ILC_COLORDDB|ILC_MASK,7,1);<BR>m_ToolbarImageList.Add( &amp;bmp, RGB(255,0,255) );<BR></FONT><FONT size=2>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDR_BT_TOOLBAR, m_ToolbarImageList);&nbsp;</DIV><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_DISCONNECT, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_MAKEDIR, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_DELETE, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_PUT, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_GET, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_TOGGLE_VIEW, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_SHOW_IMG, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>pToolBar-&gt;GetControls()-&gt;CreateOriginalControls();</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2></P></FONT></FONT><FONT size=2><P>XTPImageManager()-&gt;SetIcons(IDR_MAINFRAME);</P><P>pCommandBars-&gt;GetCommandBarsOptions()-&gt;ShowKeyboardCues(xtpKeyboardCuesShowWindowsDefault);</P><P>pCommandBars-&gt;GetToolTipContext()-&gt;SetStyle(xtpToolTipOffice);</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>&nbsp;</P></FONT></FONT><FONT size=2><P>LoadCommandBars(_T(</FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>"CommandBars"</FONT></FONT><FONT size=2>));</P><P>RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);</P></FONT>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 13:54:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47509&amp;title=24bit-toolbar-in-the-dialog#47509</guid>
  </item> 
  <item>
   <title><![CDATA[24bit toolbar in the dialog : Hi,  CXTPToolbar doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47487&amp;title=24bit-toolbar-in-the-dialog#47487</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13894<br /><strong>Posted:</strong> 02 April 2009 at 5:14am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>CXTPToolbar doesn't handle TB_SETIMAGELIST message. You need set to imagemanager of CommandBars</DIV><DIV>&nbsp;</DIV><DIV>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDR_BT_TOOLBAR);</DIV><DIV>or</DIV><DIV>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(&amp;m_ToolbarImageList, ...);</DIV>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 05:14:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47487&amp;title=24bit-toolbar-in-the-dialog#47487</guid>
  </item> 
  <item>
   <title><![CDATA[24bit toolbar in the dialog : How do I place toolbar with 24bit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47461&amp;title=24bit-toolbar-in-the-dialog#47461</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13894<br /><strong>Posted:</strong> 01 April 2009 at 2:00pm<br /><br />How do I place toolbar with 24bit color on the dialog?<DIV>It seems that the following code places the toolbar on the dialog but draws the icons found in the toolbar resource instead of image list that I supply. What do I do wrong?<BR></DIV><DIV>BOOL CMyClass::OnInitDialog()<BR>{<BR><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!InitCommandBars()) // this implemented in this class instead of calling the CodeJock library<BR></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; return</FONT></FONT><FONT size=2> FALSE;</DIV><DIV></FONT><FONT size=2>RedrawWindow(0, 0, RDW_ALLCHILDREN|RDW_INVALIDATE);<BR>CXTPCommandBars* pCommandBars = m_pCommandBars; <BR></FONT><FONT size=2>CXTPToolBar* pToolBar = pCommandBars-&gt;Add(_T(</FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>"Standard"</FONT></FONT><FONT size=2>), xtpBarTop);</DIV><P>CBitmap bmp;bmp.</P><DIV>LoadBitmap( IDB_BT_TOOLBAR );<BR>m_ToolbarImageList.Create( 16,15,ILC_COLORDDB|ILC_MASK,7,1);<BR>m_ToolbarImageList.Add( &amp;bmp, RGB(255,0,255) );<BR>pToolBar-&gt;SendMessage( TB_SETIMAGELIST, 0, (LPARAM)m_ToolbarImageList.m_hImageList );<BR>pToolBar-&gt;LoadToolBar(IDR_BT_TOOLBAR);</DIV><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_DISCONNECT, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><DIV>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_MAKEDIR, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</DIV><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_PUT, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_GET, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_TOGGLE_VIEW, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>((CXTPControlButton*)pToolBar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_BT_SHOW_IMG, TRUE, FALSE))-&gt;SetStyle(xtpButtonIconAndCaption);</P><P>pToolBar-&gt;GetControls()-&gt;CreateOriginalControls();</P><DIV>pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDR_BT_TOOLBAR);</DIV><P>XTPImageManager()-&gt;SetIcons(IDR_MAINFRAME);</P><P>pCommandBars-&gt;GetCommandBarsOptions()-&gt;ShowKeyboardCues(xtpKeyboardCuesShowWindowsDefault);</P><P>pCommandBars-&gt;GetToolTipContext()-&gt;SetStyle(xtpToolTipOffice);</P><P></FONT><FONT size=2>LoadCommandBars(_T(</FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>"CommandBars"</FONT></FONT><FONT size=2>));</P><P>RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);</P></FONT><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 14:00:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13894&amp;PID=47461&amp;title=24bit-toolbar-in-the-dialog#47461</guid>
  </item> 
 </channel>
</rss>