<?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 : CXTPToolBar Dynamic Caption</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPToolBar Dynamic Caption]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 02:51:06 +0000</pubDate>
  <lastBuildDate>Fri, 28 Jul 2006 08:36:55 +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=4652</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[CXTPToolBar Dynamic Caption : Wondeful, great news.  What...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14437&amp;title=cxtptoolbar-dynamic-caption#14437</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 28 July 2006 at 8:36am<br /><br />Wondeful, great news.<DIV>&nbsp;</DIV><DIV>What are the plans for 10.3 by the way ... release date, contents etc? Or is it released when it seems that enough has been added/fixed?</DIV>]]>
   </description>
   <pubDate>Fri, 28 Jul 2006 08:36:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14437&amp;title=cxtptoolbar-dynamic-caption#14437</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : Hi,   ok, Dan, you catch me....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14387&amp;title=cxtptoolbar-dynamic-caption#14387</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 26 July 2006 at 9:24am<br /><br /><DIV>Hi, </DIV><DIV>&nbsp;</DIV><DIV>ok, Dan, you catch me. Indeed in such context it doesn't work. Fixed for 10.3 release.</DIV><DIV>&nbsp;</DIV><DIV>Here is workaround:</DIV><DIV>&nbsp;</DIV><DIV>void CClassViewPane::OnUpdateProjectAddexistingitem( CCmdUI *pUI )<BR>{ <BR>&nbsp;CXTPControl* pControl = CXTPControl::FromUI(pUI);</DIV><DIV>&nbsp;CString strCaption("Aha oh my word");<BR>&nbsp;if (pControl-&gt;GetCaption() != strCaption)<BR>&nbsp;{<BR>&nbsp;&nbsp;pControl-&gt;SetCaption(strCaption);</DIV><DIV>&nbsp;&nbsp;</DIV><DIV>&nbsp; CXTPClientRect rc(this);&nbsp;<BR>&nbsp;&nbsp;SendMessage(WM_SIZE, 0, MAKELPARAM(rc.Width(), rc.Height())); //Recalculate toolbr position.<BR>&nbsp;}<BR>}&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 26 Jul 2006 09:24:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14387&amp;title=cxtptoolbar-dynamic-caption#14387</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : I am using a toolbar thats attached...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14383&amp;title=cxtptoolbar-dynamic-caption#14383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 4:21pm<br /><br />I am using a toolbar thats attached to a view pane ... yes, your notifications sample works fine but not in the same context as my app.<DIV>&nbsp;</DIV><DIV>Try adding some&nbsp;OnUpdate handlers&nbsp;to the ClassViewPane on the whidbey sample .. its then reproducable...</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>Add resource string ID_PROJECT_ADDEXISTINGITEM = "File Open"</DIV><DIV>&nbsp;</DIV><DIV>Then add these:</DIV><DIV>int CClassViewPane::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<BR>{<BR>&nbsp;if (lpCreateControl-&gt;nID == ID_PROJECT_ADDEXISTINGITEM)<BR>&nbsp;{<BR>&nbsp;&nbsp;lpCreateControl-&gt;buttonStyle = xtpButtonIconAndCaption;<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}</DIV><DIV>&nbsp;return FALSE;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>void CClassViewPane::OnProjectAddexistingitem()<BR>{<BR>&nbsp;// TODO: Add your command handler code here</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>void CClassViewPane::OnUpdateProjectAddexistingitem( CCmdUI *pUI )<BR>{<BR>&nbsp;pUI-&gt;SetText( "Aha oh my word" );<BR>}</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>You will see it truncate.</DIV><DIV>&nbsp;</DIV><DIV>You can then try this (where m_uCount is a var initialised to 0)...</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"><DIV>void CClassViewPane::OnUpdateProjectAddexistingitem( CCmdUI *pUI )<BR>{</DIV><DIV>&nbsp;CString str;</DIV><DIV>&nbsp;str.Format( "%d Aha oh dear", m_uCount++&nbsp;);<BR>&nbsp;pUI-&gt;SetText(&nbsp;str );<BR>}</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>You will then see that the button doesnt redraw until the mouse is waved over the button.</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps you reproduce and show me where i am going wrong, thanks.</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 16:21:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14383&amp;title=cxtptoolbar-dynamic-caption#14383</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : Hi, So you have simple CXTPToolBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14381&amp;title=cxtptoolbar-dynamic-caption#14381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 3:35pm<br /><br />Hi,<DIV>So you have simple CXTPToolBar ... if you don't use CommandBars but create it with CreateToolbar, it can't reposition self. but it send WM_SIZE to parent window when he have to be repositioned. Just cach WM_SIZE and reposition it. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 15:35:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14381&amp;title=cxtptoolbar-dynamic-caption#14381</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : Just checked Notifications sample....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14379&amp;title=cxtptoolbar-dynamic-caption#14379</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 3:31pm<br /><br />Just checked Notifications sample. All work.<DIV>&nbsp;</DIV><DIV>replace OnUpdateViewFullscreen in this sample to:</DIV><DIV>&nbsp;</DIV><DIV>void CNotificationsView::OnUpdateViewFullscreen(CCmdUI* pCmdUI)<BR>{<BR>&nbsp;CWnd* pWnd = GetParent();</DIV><DIV>&nbsp;LPCTSTR lpszCaption = (pWnd-&gt;GetStyle() &amp; WS_MAXIMIZE) != 0? _T("Normal"): _T("Maximized");</DIV><DIV>&nbsp;pCmdUI-&gt;SetText(lpszCaption);<BR>}<BR></DIV><DIV>and you will see.</DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 15:31:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14379&amp;title=cxtptoolbar-dynamic-caption#14379</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : I have got the toolbar to redraw...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14378&amp;title=cxtptoolbar-dynamic-caption#14378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 3:26pm<br /><br />I have got the toolbar to redraw by addin a m_wndToolbar.RedrawWindow() after I pUI-&gt;SetText in the OnUpdate handlers.<DIV>&nbsp;</DIV><DIV>Bit nasty, but it works.</DIV><DIV>&nbsp;</DIV><DIV>It also still gets truncated if I remove my 'space' padding.</DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 15:26:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14378&amp;title=cxtptoolbar-dynamic-caption#14378</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : Hi, Where this toolbar located?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14377&amp;title=cxtptoolbar-dynamic-caption#14377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 3:24pm<br /><br /><DIV>Hi,</DIV><DIV>Where this toolbar located? On Frame? may be in&nbsp;simple Wnd?</DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 15:24:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14377&amp;title=cxtptoolbar-dynamic-caption#14377</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : Nope, brand new MFC Toolkit 10.2,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14376&amp;title=cxtptoolbar-dynamic-caption#14376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 3:09pm<br /><br />Nope, brand new MFC Toolkit 10.2, only upgraded and used it a few days ago. <DIV>&nbsp;</DIV><DIV>I can see my OnUpdate handlers are being called (I have traced them out), but the buttons arent updating with new text. If I wave the mouse over at least one of the buttons, they are all redrawn.</DIV><DIV>&nbsp;</DIV><DIV>But the button is not resized when it is drawn ... I have fudged this for now by adding loads of spaces around the default text to ensure its big enough when its created ... bit nasty to do this though.</DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 15:09:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14376&amp;title=cxtptoolbar-dynamic-caption#14376</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : Hi, It must work.   What toolkit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14372&amp;title=cxtptoolbar-dynamic-caption#14372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 2:24pm<br /><br /><DIV>Hi,</DIV><DIV>It must work. </DIV><DIV>&nbsp;</DIV><DIV>What toolkit version do you have? </DIV><DIV>May be it is Dialog/ActiveX application?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 14:24:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14372&amp;title=cxtptoolbar-dynamic-caption#14372</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolBar Dynamic Caption : I have that, but it doesnt work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14371&amp;title=cxtptoolbar-dynamic-caption#14371</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4652<br /><strong>Posted:</strong> 25 July 2006 at 2:07pm<br /><br />I have that, but it doesnt work right:<DIV>* It doesnt resize the button so the caption gets truncated</DIV><DIV>* The toolbar doesnt show the new text until you move the mouse over the toolbar</DIV>]]>
   </description>
   <pubDate>Tue, 25 Jul 2006 14:07:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4652&amp;PID=14371&amp;title=cxtptoolbar-dynamic-caption#14371</guid>
  </item> 
 </channel>
</rss>