<?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 : ToolTips in CXTPToolBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : ToolTips in CXTPToolBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:09:46 +0000</pubDate>
  <lastBuildDate>Thu, 11 Nov 2004 06:43:11 +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=1398</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[ToolTips in CXTPToolBar :  Brilliant! I found the solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3965&amp;title=tooltips-in-cxtptoolbar#3965</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=719">fredwobus</a><br /><strong>Subject:</strong> 1398<br /><strong>Posted:</strong> 11 November 2004 at 6:43am<br /><br /><P><IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></P><P>Brilliant! I found the solution in another post on CodeJock </P><P><A href="https://forum.codejock.com/forum_posts.asp?TID=1361&amp;PN=1" target="_blank"> https://forum.codejock.com/forum_posts.asp?TID=1361&amp; PN=1</A>&nbsp;<BR>"<SPAN =lgText>Task Panel Tooltips in ActiveX control</SPAN> "</P><P><FONT size=2>All I need to do is to create a class based on CXTPToolBar, which overrides OnWndMsg, and in there I do the <EM>FilterToolTipMessage </EM>as described in the previous post.</FONT></P><P><FONT size=2>I think this sort of thing could have been done in the toolkit. I hope future versions get tested inside ActiveX controls as well as in MFC monolithic apps.</FONT></P><FONT size=2><P><FONT size=2>Thanks for your help so far.</FONT></P></FONT><P><FONT size=2>Cheers, Fred</FONT></P>]]>
   </description>
   <pubDate>Thu, 11 Nov 2004 06:43:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3965&amp;title=tooltips-in-cxtptoolbar#3965</guid>
  </item> 
  <item>
   <title><![CDATA[ToolTips in CXTPToolBar : Thanks for the hint.  My controls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3964&amp;title=tooltips-in-cxtptoolbar#3964</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=719">fredwobus</a><br /><strong>Subject:</strong> 1398<br /><strong>Posted:</strong> 11 November 2004 at 4:54am<br /><br />Thanks for the hint.<br><br>My controls do not have the xtpFlagManualUpdate flag and are therefore controlled by the OnUpdateCmdUI method.<br><br>However, I tried setting the manual flag and the caption right after creating the toolbar. And i still don't see any tooltips.<br><br>I forgot to mention that <span style="font-weight: bold;">my dialog and its toolbar are inside an ActiveX control</span>.<br><br>In XTPCommandBar.cpp (version 9.51) in line 195 I found these lines<br>&nbsp;&nbsp;&nbsp; #ifdef _XTP_ACTIVEX<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AFX_MODULE_STATE* pModuleState = _AFX_CMDTARGET_GETSTATE();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pModuleState-&gt;m_pfnFilterToolTipMessage = &amp;AxFilterToolTipMessage;<br>&nbsp;&nbsp;&nbsp; #endif<br>Would that have something to do with it ?<br><br>Cheers,Fred<br><br>]]>
   </description>
   <pubDate>Thu, 11 Nov 2004 04:54:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3964&amp;title=tooltips-in-cxtptoolbar#3964</guid>
  </item> 
  <item>
   <title><![CDATA[ToolTips in CXTPToolBar : I got tooltips working in my toolbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3963&amp;title=tooltips-in-cxtptoolbar#3963</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=757">krulle</a><br /><strong>Subject:</strong> 1398<br /><strong>Posted:</strong> 11 November 2004 at 4:40am<br /><br /><P>I got tooltips working in my toolbar in a dialog based class. I construct the toolbar the same way as you. I have no update handlers and i don't use the SetTooltip method. I just add the controls in this way and give them a caption string. The string given to SetCaption() will be shown as tooltip.</P><P><FONT size=1><FONT face="Courier New, Courier, mono">CXTPControl</FONT><FONT face="Courier New, Courier, mono"><FONT color=#ff0000>*</FONT> c <FONT color=#ff0000>=</FONT> m_ToolBar<FONT color=#ff0000>.</FONT>GetControls<FONT color=#ff0000>()</FONT><FONT color=#ff0000>-&gt;</FONT>Add<FONT color=#ff0000>(</FONT>xtpControlButton<FONT color=#ff0000>,</FONT> cmdId<FONT color=#ff0000>);</FONT></FONT></FONT></P><P><P><FONT size=1></FONT><FONT face="Courier New, Courier, mono"><FONT color=#ff0000></P></FONT><FONT size=1>c<FONT color=#ff0000>-&gt;</FONT>SetFlags<FONT color=#ff0000>(</FONT>xtpFlagManualUpdate<FONT color=#ff0000>);</FONT></FONT></FONT><P><FONT size=1><FONT color=#008000></P></FONT><FONT face="Courier New, Courier, mono"><FONT face="Courier New, Courier, mono">c<FONT color=#ff0000>-&gt;</FONT>SetCaption<FONT color=#ff0000>(</FONT>caption<FONT color=#ff0000 size=1>);<FONT size=2><FONT size=7></P></FONT></FONT></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 11 Nov 2004 04:40:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3963&amp;title=tooltips-in-cxtptoolbar#3963</guid>
  </item> 
  <item>
   <title><![CDATA[ToolTips in CXTPToolBar : Hi,As you might remember from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3962&amp;title=tooltips-in-cxtptoolbar#3962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=719">fredwobus</a><br /><strong>Subject:</strong> 1398<br /><strong>Posted:</strong> 11 November 2004 at 4:17am<br /><br />Hi,<BR><BR>As you might remember from my post&nbsp;(<A href="https://forum.codejock.com/forum_posts.asp?TID=1364&amp;PN=1" target="_blank"> https://forum.codejock.com/forum_posts.asp?TID=1364&amp; PN=1</A>&nbsp; "<SPAN =lgText>Attaching to a CWnd pSite does not work</SPAN>") &nbsp;I am experimenting with a toolbar which sits inside a dialog window instead of a CFrameWnd.<BR>I loose the ability to dock/float the toolbar, but that's not needed anyway.<BR><BR>I am trying to <strong>activate tooltips</strong> for this toolbar, but have failed so far.<BR><BR>The toolbar is created using<BR>&nbsp;<FONT face="Courier New, Courier, mono">&nbsp;&nbsp; CreateToolBar(WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, pParentDlg);<BR></FONT>i.e. the magic flag to activate the tooltips is switched on.<BR><BR>In the OnUpdateCmdUI method of the parent dialog I try the following to set the tooltip text:<BR><BR><FONT face="Courier New, Courier, mono"><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;pCmdUI-&gt;Enable(TRUE);<BR>&nbsp;&nbsp;&nbsp;CXTPControl* pControl = CXTPControl::FromUI(pCmdUI);<BR>&nbsp;&nbsp;&nbsp;pControl-&gt;SetTooltip("Undo");<BR></FONT><BR></FONT>The enabling/disabling works perfectly, but I never see a tooltip.<BR><BR><BR><strong>How does the CommandBar handle tooltips?<BR>Do I need to implement a TTN_NEEDTEXT message ?<BR>Why does it work when the toolbar sits docked in a CFrameWnd ?<BR><BR></strong><BR>Cheers,<BR>Fred<BR><span style="font-size:10px"><br /><br />Edited by fredwobus</span>]]>
   </description>
   <pubDate>Thu, 11 Nov 2004 04:17:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1398&amp;PID=3962&amp;title=tooltips-in-cxtptoolbar#3962</guid>
  </item> 
 </channel>
</rss>