<?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 : which class should be use instead of CToolBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : which class should be use instead of CToolBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 21:45:25 +0000</pubDate>
  <lastBuildDate>Tue, 08 Jan 2008 01:55:52 +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=9216</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[which class should be use instead of CToolBar : wndStatubar.GetPane(i)-&amp;gt;SetTooltip(..);  to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29939&amp;title=which-class-should-be-use-instead-of-ctoolbar#29939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 08 January 2008 at 1:55am<br /><br />wndStatubar.GetPane(i)-&gt;SetTooltip(..);<DIV>&nbsp;</DIV><DIV>to set icons call pCommandBars-&gt;GetImageManager()-&gt;SetIcons(...);</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 01:55:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29939&amp;title=which-class-should-be-use-instead-of-ctoolbar#29939</guid>
  </item> 
  <item>
   <title><![CDATA[which class should be use instead of CToolBar : if same tooltip need to be set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29916&amp;title=which-class-should-be-use-instead-of-ctoolbar#29916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3627">himanshu</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 07 January 2008 at 4:38am<br /><br />if same tooltip need to be set on statusbar which method is used <DIV>&nbsp;</DIV><DIV>if i have an HBITMAP type how will i set this to the button&nbsp;</DIV><DIV>thanks</DIV>]]>
   </description>
   <pubDate>Mon, 07 Jan 2008 04:38:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29916&amp;title=which-class-should-be-use-instead-of-ctoolbar#29916</guid>
  </item> 
  <item>
   <title><![CDATA[which class should be use instead of CToolBar : Hi,  CXTPControl* pButton =...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29911&amp;title=which-class-should-be-use-instead-of-ctoolbar#29911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 07 January 2008 at 3:10am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>CXTPControl* pButton = pToolBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID_EDIT_COPY);</DIV><DIV>pButton-&gt;SetCaption(,,,);</DIV><DIV>pButton-&gt;SetTooltip(..);</DIV><DIV>pButton-&gt;SetDescription(...);</DIV><DIV>etc.</DIV>]]>
   </description>
   <pubDate>Mon, 07 Jan 2008 03:10:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29911&amp;title=which-class-should-be-use-instead-of-ctoolbar#29911</guid>
  </item> 
  <item>
   <title><![CDATA[which class should be use instead of CToolBar : hi  thanks there  If the below...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29906&amp;title=which-class-should-be-use-instead-of-ctoolbar#29906</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3627">himanshu</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 07 January 2008 at 1:29am<br /><br />hi<DIV>&nbsp;</DIV><DIV>thanks there</DIV><DIV>&nbsp;</DIV><DIV>If the below added id need to be attched with some string which will act as tooltip for that button how could i attach that</DIV><DIV>I am not using resource file for loading the string</DIV><DIV>Some hardcoded strings need to be attached to the button ids.</DIV><DIV>&nbsp;</DIV><DIV>Could u suggest something</DIV>]]>
   </description>
   <pubDate>Mon, 07 Jan 2008 01:29:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29906&amp;title=which-class-should-be-use-instead-of-ctoolbar#29906</guid>
  </item> 
  <item>
   <title><![CDATA[which class should be use instead of CToolBar : Hi,  Try this:  pToolBar-&amp;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29869&amp;title=which-class-should-be-use-instead-of-ctoolbar#29869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 04 January 2008 at 2:56am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Try this:</DIV><DIV>&nbsp;</DIV><DIV>pToolBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID_EDIT_COPY);</DIV><DIV>&nbsp;</DIV><DIV>see methods of CXTPControls class.</DIV>]]>
   </description>
   <pubDate>Fri, 04 Jan 2008 02:56:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29869&amp;title=which-class-should-be-use-instead-of-ctoolbar#29869</guid>
  </item> 
  <item>
   <title><![CDATA[which class should be use instead of CToolBar : hi  thanks for your quick response  In...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29868&amp;title=which-class-should-be-use-instead-of-ctoolbar#29868</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3627">himanshu</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 04 January 2008 at 2:21am<br /><br />hi<DIV>&nbsp;</DIV><DIV>thanks for your quick response</DIV><DIV>&nbsp;</DIV><DIV>In the example i saw code something like this</DIV><DIV><FONT color=#008000 size=2>CXTPToolBar* pToolBar = (CXTPToolBar*)pCommandBars-&gt;Add(str,xtpBarTop);</FONT></DIV><DIV><FONT color=#008000 size=2>if (!pToolBar1 || !pToolBar1-&gt;LoadToolBar(IDR_MAINFRAME))</FONT></DIV><DIV><FONT color=#008000 size=2>{TRACE0("Failed to create toolbar\n");</FONT></DIV><DIV><FONT color=#008000 size=2>return ;</FONT></DIV><DIV><FONT color=#008000 size=2>}</FONT></DIV><DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2>Here IDR_MAINFRAME is the toolbar id which contains the require buttons.</FONT></DIV><DIV><FONT color=#008000 size=2>In my application i am inserting the buttoninfo&nbsp; run time one button at a time .How to support such arrangement.</FONT></DIV><DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2>Could you suggest the example name.</FONT></DIV><DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2>Thanks in advance</FONT></DIV><DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 04 Jan 2008 02:21:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29868&amp;title=which-class-should-be-use-instead-of-ctoolbar#29868</guid>
  </item> 
  <item>
   <title><![CDATA[which class should be use instead of CToolBar : Hello,  See our samples.  We...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29867&amp;title=which-class-should-be-use-instead-of-ctoolbar#29867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 04 January 2008 at 2:10am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>See our samples. </DIV><DIV>We don't have toolbars that support <FONT size=2>CToolBarCtrl - we create all toolbars from CWnd.</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 04 Jan 2008 02:10:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29867&amp;title=which-class-should-be-use-instead-of-ctoolbar#29867</guid>
  </item> 
  <item>
   <title><![CDATA[which class should be use instead of CToolBar : Hi  I have one class derived...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29865&amp;title=which-class-should-be-use-instead-of-ctoolbar#29865</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3627">himanshu</a><br /><strong>Subject:</strong> 9216<br /><strong>Posted:</strong> 04 January 2008 at 1:48am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>I have one class derived from CToolBar.</DIV><DIV>&nbsp;</DIV><DIV>i am creating an object of that class using "new" wherein i create toolbar using CreateEx method.</DIV><DIV>&nbsp;</DIV><DIV>Afterward i insert a button into it using </DIV><DIV><FONT size=2>CToolBarCtrl *ctoolbarctrl = NULL;</FONT></DIV><DIV><FONT size=2>ctoolbarctrl = &amp;(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;GetToolBarCtrl());</FONT></DIV><DIV><FONT size=2><FONT size=2>ctoolbarctrl-&gt;InsertButton</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>Now i want to relace this CToolBar class with CXTPCommandBar class</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>but problem with this is it doesnot support GetToolBarCtrl and some other methods.</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>Which class should i use instead CToolBar which will support CToolBArCtrl functionalities in my application and i will be able to create new toolbar and menubar.</DIV></FONT></FONT><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 04 Jan 2008 01:48:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9216&amp;PID=29865&amp;title=which-class-should-be-use-instead-of-ctoolbar#29865</guid>
  </item> 
 </channel>
</rss>