<?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 : CToolTips &#111;bject from CXTToolBar in SDI</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CToolTips &#111;bject from CXTToolBar in SDI]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 17:49:33 +0000</pubDate>
  <lastBuildDate>Sun, 02 Nov 2003 14:34:02 +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=71</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[CToolTips &#111;bject from CXTToolBar in SDI : Hi Joe, The GetToolTips method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=71&amp;PID=443&amp;title=ctooltips-object-from-cxttoolbar-in-sdi#443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 71<br /><strong>Posted:</strong> 02 November 2003 at 2:34pm<br /><br /><P>Hi Joe,</P><P>The GetToolTips method will only work if you specify a tooltip control for the toolbar.&nbsp; If you do so, you don't want to use the CBRS_TOOLTIPS flag because the toolbar will display 2 tooltips, its default one and the one you specify.&nbsp; Here is an example:</P><P>In your .h file:</P><P><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>CToolTipCtrl</FONT> <FONT color=#808080>m_wndToolTip</FONT>;</FONT></P><P>In your .cpp file:<BR><BR><FONT face="Courier New, Courier, mono"><FONT color=#0000ff><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>if</FONT> (!<FONT color=#808080>m_wndBuildBar</FONT>.<FONT color=#880000>CreateEx</FONT>(<FONT color=#0000ff>this</FONT>, <FONT color=#a000a0>TBSTYLE_FLAT</FONT>|<FONT color=#a000a0>TBSTYLE_LIST</FONT>, <FONT color=#a000a0>WS_CHILD</FONT> | <FONT color=#a000a0>WS_VISIBLE</FONT> | <FONT color=#a000a0>CBRS_TOP<BR></FONT></FONT><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; | <FONT color=#a000a0>CBRS_GRIPPER</FONT> | <FONT color=#a000a0>CBRS_FLYBY</FONT> | <FONT color=#a000a0>CBRS_SIZE_DYNAMIC</FONT>, <FONT color=#0000ff>CRect</FONT>(0,0,0,0), 59500) ||<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">!<FONT color=#808080>m_wndBuildBar</FONT>.<FONT color=#880000>LoadToolBar</FONT>(<FONT color=#a000a0>IDR_BUILD</FONT>))<BR></FONT><FONT face="Courier New, Courier, mono">{<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#a000a0>TRACE0</FONT>("Failed to create toolbar\n");<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>return</FONT> -1; <FONT color=#008000>// fail to create<BR></FONT></FONT><FONT face="Courier New, Courier, mono">}</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT color=#808080>m_wndToolTip</FONT>.<FONT color=#880000>Create</FONT>(<FONT color=#0000ff>this</FONT>);<BR></FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>m_wndBuildBar</FONT>.<FONT color=#880000>SetToolTips</FONT>(&amp;<FONT color=#808080>m_wndToolTip</FONT>);<BR></FONT><FONT face="Courier New, Courier, mono"><FONT face=Tahoma><BR><FONT color=#000000>Then later you can call GetToolTips() to return a pointer to the tooltip control, but you may not need to since you already have the m_wndToolTip member.<BR><BR><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>CToolTipCtrl</FONT>* <FONT color=#808080>ptips</FONT> = <FONT color=#808080>m_wndBuildBar</FONT>.<FONT color=#880000>GetToolTips</FONT>();</FONT></FONT></FONT></FONT></P><P><FONT face="Courier New, Courier, mono"><FONT><FONT color=#000000><FONT face=Tahoma size=2>Cheers,<BR>Codejock Support</FONT></P></FONT></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Sun, 02 Nov 2003 14:34:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=71&amp;PID=443&amp;title=ctooltips-object-from-cxttoolbar-in-sdi#443</guid>
  </item> 
  <item>
   <title><![CDATA[CToolTips &#111;bject from CXTToolBar in SDI : Hi, I cannot seem to get a CToolTips...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=71&amp;PID=154&amp;title=ctooltips-object-from-cxttoolbar-in-sdi#154</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=83">JoeSchmoe</a><br /><strong>Subject:</strong> 71<br /><strong>Posted:</strong> 17 June 2003 at 4:57pm<br /><br /><P>Hi,</P><P>I cannot seem to get a CToolTips object from a CXTToolBar that has been created normally in a CFrameWnd derived object. The tooltips are working and are visible on the bar.</P><P>It's created with:</P><P><FONT face="Courier New, Courier, mono"><strong>if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP<BR>&nbsp;&nbsp;| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||<BR>&nbsp;&nbsp;!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create toolbar\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</strong></FONT></P><P>However, later if I call:</P><P><FONT face="Courier New, Courier, mono"><strong>CToolTipCtrl* tips = this-&gt;m_wndToolBar.GetToolTips();</strong></FONT></P><P>from inside the CFrameWnd derived object, tips is returned as NULL.</P><P>What I need to do ultimately is&nbsp;change the tool tip text at will.</P><P>Any help is appreciated.</P><P>Joe</P>]]>
   </description>
   <pubDate>Tue, 17 Jun 2003 16:57:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=71&amp;PID=154&amp;title=ctooltips-object-from-cxttoolbar-in-sdi#154</guid>
  </item> 
 </channel>
</rss>