<?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 : add static text to toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : add static text to toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 07:19:23 +0000</pubDate>
  <lastBuildDate>Fri, 14 May 2004 12:57:47 +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=701</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[add static text to toolbar : another way: My application has...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1955&amp;title=add-static-text-to-toolbar#1955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=526">amyvt</a><br /><strong>Subject:</strong> 701<br /><strong>Posted:</strong> 14 May 2004 at 12:57pm<br /><br /><P>&nbsp;another way:</P><P>&nbsp;My application has "vcr" buttons in the toolbar, and text next to it "item X of Y"</P><P>&nbsp;the way I do it is to create a dummy toolbar button, like you did and an UPDATE_COMMAND_UI&nbsp;handler.&nbsp; When I update my variables, the text "updates itself".</P><P>&nbsp;ON_UPDATE_COMMAND_UI(ID_DUMMY2, OnUpdateDummy2)<BR></P><P>void CTabFrameWnd::OnUpdateDummy2(CCmdUI* pCmdUI) <BR>{<BR>&nbsp;CString cs ;<BR>&nbsp;&nbsp;&nbsp;cs.Format("Seq %d of %-d",&nbsp;&nbsp;&nbsp;&nbsp;m_seqnum, m_totrecs-1) ;<BR><BR>&nbsp;// Add text to the toolbar button.<BR>&nbsp;m_wndToolBar.ModifyStyle(0, TBSTYLE_LIST) ;<BR> &nbsp;m_wndToolBar.SetButtonText(m_wndToolBar.CommandToIndex (ID_DUMMY2), cs);<BR>&nbsp;<BR>}<BR></P>]]>
   </description>
   <pubDate>Fri, 14 May 2004 12:57:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1955&amp;title=add-static-text-to-toolbar#1955</guid>
  </item> 
  <item>
   <title><![CDATA[add static text to toolbar : Works great!  I have Toolkit Pro...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1894&amp;title=add-static-text-to-toolbar#1894</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=390">Joe Brown</a><br /><strong>Subject:</strong> 701<br /><strong>Posted:</strong> 11 May 2004 at 4:53pm<br /><br />Works great!  I have Toolkit Pro v8.51, and the documentation pretty much only lists member functions and variables, not actual functionality and descriptive info. Takes a lot of time to find answers on your own.  Appreciate the help!]]>
   </description>
   <pubDate>Tue, 11 May 2004 16:53:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1894&amp;title=add-static-text-to-toolbar#1894</guid>
  </item> 
  <item>
   <title><![CDATA[add static text to toolbar : in the CommonControls you can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1889&amp;title=add-static-text-to-toolbar#1889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 701<br /><strong>Posted:</strong> 11 May 2004 at 2:13pm<br /><br />in the CommonControls you can find CControlStatic implementation.]]>
   </description>
   <pubDate>Tue, 11 May 2004 14:13:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1889&amp;title=add-static-text-to-toolbar#1889</guid>
  </item> 
  <item>
   <title><![CDATA[add static text to toolbar : I have a toolbar, and want to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1843&amp;title=add-static-text-to-toolbar#1843</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=390">Joe Brown</a><br /><strong>Subject:</strong> 701<br /><strong>Posted:</strong> 07 May 2004 at 5:53pm<br /><br />I have a toolbar, and want to add a slider control to it. I have it all working, but I also want to add text to the left of it that says the current position of the slider.  I created a button in the toolbar as a placeholder, and in OnCreateControl, I create a CStatic and attach it to the toolbar.  However, the font of the CStatic is different from everything else.<br /><br />How do I get the same font?  Is it possible to have a caption for any control in a toolbar?  I couldn't get it to work for a CSliderCtrl.<br />]]>
   </description>
   <pubDate>Fri, 07 May 2004 17:53:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=701&amp;PID=1843&amp;title=add-static-text-to-toolbar#1843</guid>
  </item> 
 </channel>
</rss>