<?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 : TTM_UPDATETIPTEXT don&#039;t work!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : TTM_UPDATETIPTEXT don&#039;t work!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:57:13 +0000</pubDate>
  <lastBuildDate>Thu, 27 Feb 2014 09:01:45 +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=22222</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[TTM_UPDATETIPTEXT don&#039;t work! : We like to show a tooltip depends...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22222&amp;PID=72291&amp;title=ttm-updatetiptext-dont-work#72291</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 22222<br /><strong>Posted:</strong> 27 February 2014 at 9:01am<br /><br />We like to show a tooltip depends on key state.<br><br>Sample use case:<br>Tooltip over a link (like in an internet browser).<br>Mouse over a link shows "follow link"<br>STRG+Mouse over a link shows "follow link a new tab"<br><br>But we have serveral problems:<br><br>a) if mouse is over a link and you press STRG after, the tooltip is to be destroyed!?<br>This happends because you scan for key strokes!? (system tooltip don't hide if pressing a key)<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>BOOL bKeys = (message &gt;= WM_KEYFIRST &amp;&amp; message &lt;= WM_KEYLAST) ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (message &gt;= WM_SYSKEYFIRST &amp;&amp; message &lt;= WM_SYSKEYLAST);</b><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ((bKeys ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (message == WM_LBUTTONDOWN || message == WM_LBUTTONDBLCLK) ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (message == WM_RBUTTONDOWN || message == WM_RBUTTONDBLCLK) ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (message == WM_MBUTTONDOWN || message == WM_MBUTTONDBLCLK) ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (message == WM_NCLBUTTONDOWN || message == WM_NCLBUTTONDBLCLK) ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (message == WM_NCRBUTTONDOWN || message == WM_NCRBUTTONDBLCLK) ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (message == WM_NCMBUTTONDOWN || message == WM_NCMBUTTONDBLCLK)))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>CancelToolTips()</b>;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></pre></td></tr></table><br><br>b) if the new text was calculated in <font face="Courier New, Courier, mono">OnToolHitTest(CPoint point, TOOLINFO* pTI) </font>and written to <font face="Courier New, Courier, mono">pTI-&gt;lpszText</font>, the base class doesn't modify the tooltip!<br>If I manually call <font face="Courier New, Courier, mono">TTM_UPDATETIPTEXT</font>, I saw that the string was internally updated in array m_arrTools but no recalculation and redraw action follows (like system tooltip)!!!!!!!<br>A manually redaw don't neither work, because the <font face="Courier New, Courier, mono">OnPaint()</font> method reads the old string from <font face="Courier New, Courier, mono">m_toolVisible</font>.<br><br>Please support changes of tooltip text while it is displayed! Thanks<br>]]>
   </description>
   <pubDate>Thu, 27 Feb 2014 09:01:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22222&amp;PID=72291&amp;title=ttm-updatetiptext-dont-work#72291</guid>
  </item> 
 </channel>
</rss>