<?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 : tooltip quits tipping</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : tooltip quits tipping]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 02:46:54 +0000</pubDate>
  <lastBuildDate>Fri, 09 Jan 2009 18:29:03 +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=13107</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[tooltip quits tipping : When theif statement that tests...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44408&amp;title=tooltip-quits-tipping#44408</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 13107<br /><strong>Posted:</strong> 09 January 2009 at 6:29pm<br /><br />When the&nbsp;if statement that tests bTipInfoChanged is not true,&nbsp;would it hurt to activate the tip in addition to calling <FONT size=2>RelayToolTipMessage? That way if it got deactivated for whatever reason, it would be reactivated when a hit occurred.<DIV></DIV><DIV>&nbsp;</DIV><DIV>That is esentially what I am doing to address the issue (I subclassed your context so I could get to the protected tooltip and send the TTM_ACTIVATE message to it whenever I detect the same message that caused your to deactivate it.</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 09 Jan 2009 18:29:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44408&amp;title=tooltip-quits-tipping#44408</guid>
  </item> 
  <item>
   <title><![CDATA[tooltip quits tipping : Hello, Without demo application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44297&amp;title=tooltip-quits-tipping#44297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13107<br /><strong>Posted:</strong> 08 January 2009 at 1:22am<br /><br /><DIV>Hello,</DIV><DIV>Without demo application its hard to suggest something. :(</DIV>]]>
   </description>
   <pubDate>Thu, 08 Jan 2009 01:22:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44297&amp;title=tooltip-quits-tipping#44297</guid>
  </item> 
  <item>
   <title><![CDATA[tooltip quits tipping : Oleg,  My original problem and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44290&amp;title=tooltip-quits-tipping#44290</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 13107<br /><strong>Posted:</strong> 07 January 2009 at 5:37pm<br /><br />Oleg,<DIV>&nbsp;</DIV><DIV>My original problem and the new one seem to both be related to your code calling <FONT size=2><FONT size=2>CancelToolTips when the mouse down event occurs. When called <FONT size=2>CXTPToolTipContextToolTip::Activate(FALSE) is called.</FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Once it is called, no other call to <FONT size=2>XTPToolTipContextToolTip::Activate(TRUE) is ever made. My forcing <FONT size=2>bTipInfoChanged to true allows the code in the if statement to call <FONT size=2>pToolTip-&gt;SendMessage(TTM_ACTIVATE, TRUE) and that is why it starts working again (until another mouse down event occurs).</FONT></FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I have tried tricking the code by not setting the <FONT size=2>TTF_IDISHWND and changing the uID on each call but no tip at all shows. If I leave the flag in and set the uId to my window's handle but change the rect, the tip goes into a constant display refresh (strobes) or doesn't show at all.</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>About the only thing I could find was to subclass so I can get to the tooltip member and after a mouse event occurs, I have my subclass send the TTM_ACTIVATE (true) message to the tip. That seems to work but I keep thinking there should be some more simple way to start the tip working again.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 07 Jan 2009 17:37:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44290&amp;title=tooltip-quits-tipping#44290</guid>
  </item> 
  <item>
   <title><![CDATA[tooltip quits tipping : I posted earlier about having...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44282&amp;title=tooltip-quits-tipping#44282</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 13107<br /><strong>Posted:</strong> 07 January 2009 at 3:20pm<br /><br /><P>I posted earlier about having problems with a tooltip on a window with no controls. I have almost fixed that problem by giving the window its own tooltip context and overriding PretranslateMessage and calling FilterToolTipMessage on the new/private context. My change did fix the issue of clicking in a view stopping the tip from ever showing up (when that happened all I had to do to get it to start working again was move the mouse over a docking pane.) I did have to add a static flag to know when to let OnToolHitTest actually process since the window is not modal and the system tooltip context calls OnToolHitTest too (if I don't a tip shows up once and never ever goes away.)</P><DIV>However sometimes the tip still just quits showing up. I have found that when this happens,&nbsp;if I break in OnToolHitTest and after calling FillInToolInfo step back out of the function until I get to this line in FilterToolTipMessageHelper:</DIV><FONT size=2><P>BOOL bTipInfoChanged = m_lastInfo.uId != tiHit.uId || m_lastInfo.hwnd != tiHit.hwnd;</P><DIV></DIV><P>and change bTipInfoChanged from FALSE to TRUE so the code in the following if statment is executed, the tip starts working again.</P><DIV>Is there some problem with tipping when the window has no controls in it? Here is my hit test code - does anything look out of the ordinary?</DIV><DIV>&nbsp;</DIV><FONT size=2><P>INT_PTR CTransparentWnd::OnToolHitTest(CPoint point, TOOLINFO* pTI) </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>const</P></FONT></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2>( !s_bTest ) </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 0;</P><P>pTI-&gt;hwnd = m_hWnd;</P><P>pTI-&gt;uId = (WPARAM)m_hWnd;</P><P>pTI-&gt;uFlags |= (TTF_IDISHWND | TTF_NOTBUTTON | TTF_ALWAYSTIP);</P><P>CRect rect;</P><P>rect.SetRectEmpty();</P><P>GetClientRect( &amp;rect );</P></FONT><FONT size=2><P>CXTPToolTipContext::FillInToolInfo( pTI, pTI-&gt;hwnd, rect, pTI-&gt;uId, m_strTooltilDescription, m_strTooltipTitle, m_strTooltilDescription );</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 1;</P><P>}</P><FONT size=2><P>BOOL CTransparentWnd::PreTranslateMessage(MSG* pMsg) </P><P>{</P><P>s_bTest = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>true</FONT></FONT><FONT size=2>;</P><P>m_ToolTipContext.FilterToolTipMessage(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>, pMsg);</P><P>s_bTest = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>false</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> CWnd::PreTranslateMessage(pMsg);</P><P>}</P></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 07 Jan 2009 15:20:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13107&amp;PID=44282&amp;title=tooltip-quits-tipping#44282</guid>
  </item> 
 </channel>
</rss>