<?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 : CXTPToolTipContext very inefficient</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPToolTipContext very inefficient]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 22:43:46 +0000</pubDate>
  <lastBuildDate>Fri, 18 Jan 2008 06:34:15 +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=8645</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[CXTPToolTipContext very inefficient : Hi, We understand it has delays...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30268&amp;title=cxtptooltipcontext-very-inefficient#30268</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 18 January 2008 at 6:34am<br /><br />Hi,<DIV>We understand it has delays :( But global webbrowser is not solution.</DIV><DIV>For 12.0 release we're working with own Markup to replace WebBrowser's rendering.</DIV>]]>
   </description>
   <pubDate>Fri, 18 Jan 2008 06:34:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30268&amp;title=cxtptooltipcontext-very-inefficient#30268</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : Hmm, I tried setting the tooltip...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30128&amp;title=cxtptooltipcontext-very-inefficient#30128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 14 January 2008 at 7:41pm<br /><br /><DIV>Hmm, I tried setting the tooltip via CMyRecordItem::SetTooltip (once in the constructor). I still get high CPU-peaks.</DIV><DIV>&nbsp;</DIV><DIV>No, this is indeed a bug or "bad" implementation (I know this is hard stuff).</DIV><DIV>&nbsp;</DIV><DIV>Take a look at <strong>CHTMLToolTip::GetToolSize</strong>:</DIV><DIV>&nbsp;</DIV><DIV>READYSTATE rs;</DIV><DIV>do<BR>{<BR>&nbsp;&nbsp;&nbsp; AfxGetApp()-&gt;PumpMessage();<BR>&nbsp;&nbsp;&nbsp; m_pBrowserApp-&gt;get_ReadyState (&amp;rs);<BR>}</DIV><DIV>while (rs != READYSTATE_COMPLETE);<strong> <img src="http://forum.codejock.com/smileys/smiley37.gif" border="0"></strong></DIV><DIV>&nbsp;</DIV><DIV>And later you call this <strong>a lot of times</strong>:</DIV><DIV>m_wndBrowser.MoveWindow(0, 0, cx, nScrollHeight);</DIV><DIV>&nbsp;</DIV><DIV><strong>A solution?</strong></DIV><DIV>An idea is to instantiate <strong>one browser object only </strong>(Navigate to "about:" only once!), which you use whenever a tooltip should be displayed. Remember that the Navigate-method takes some 100+ milliseconds on some systems!</DIV><DIV>&nbsp;</DIV><DIV><strong>The size of the html-window</strong> is always a problem. I think I have an idea for that too. Simply make it the <strong>size of the screen</strong>, and then you put <strong>all html-code inside a &lt;table width="preferredWidth"&gt; </strong>and then you show a window with this browser as a child and set the desired dimensions of the parent window - not the browser itself!</DIV><DIV>&nbsp;</DIV><DIV>Perhaps the resizing of the browser is not the bottleneck here, but if it turns out to be slow you know how to fix it :).</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 19:41:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30128&amp;title=cxtptooltipcontext-very-inefficient#30128</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : Hi,  Override INT_PTR CXTPRe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30089&amp;title=cxtptooltipcontext-very-inefficient#30089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 14 January 2008 at 5:31am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Override INT_PTR CXTPReportControl::OnToolHitTest(CPoint point, TOOLINFO* pTI) const method instead<BR></DIV><DIV>or don't override any method, call GetToolTipContext()-&gt;SetStyle(xtpToolTipHTML);&nbsp; and set HTML tooltip using pItem-&gt;SetTooltip("&lt;b&gt;test&lt;/b&gt;");</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 05:31:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30089&amp;title=cxtptooltipcontext-very-inefficient#30089</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : Hi; I also hit the same problem. Oleg,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30087&amp;title=cxtptooltipcontext-very-inefficient#30087</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 14 January 2008 at 4:26am<br /><br />Hi;<DIV>I also hit the same problem.</DIV><DIV>Oleg, a small sample would be nice!</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 04:26:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30087&amp;title=cxtptooltipcontext-very-inefficient#30087</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : In my report control I do the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30075&amp;title=cxtptooltipcontext-very-inefficient#30075</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 13 January 2008 at 2:12pm<br /><br /><P>In my report control I do the following in the constructor:</P><DIV></DIV>GetToolTipContext()-&gt;SetStyle(xtpToolTipHTML);<DIV>&nbsp;</DIV><DIV>Then I override:</DIV><DIV>const XTP_NM_REPORTTOOLTIPINFO&amp; CMyReportControl::OnGetToolTipInfo(CXTPReportRow* pRow, CXTPReportRecordItem* pItem, CString&amp; rstrToolTipText)</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp; ...</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>What am I doing wrong?</DIV>]]>
   </description>
   <pubDate>Sun, 13 Jan 2008 14:12:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30075&amp;title=cxtptooltipcontext-very-inefficient#30075</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : Hi, don&amp;#039;t use FillInToolInfo...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30073&amp;title=cxtptooltipcontext-very-inefficient#30073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 13 January 2008 at 11:34am<br /><br />Hi,<DIV>don't use FillInToolInfo but set LPSTR_TEXTCALLBACK.</DIV>]]>
   </description>
   <pubDate>Sun, 13 Jan 2008 11:34:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30073&amp;title=cxtptooltipcontext-very-inefficient#30073</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : I have the same problem here.What...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30072&amp;title=cxtptooltipcontext-very-inefficient#30072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 12 January 2008 at 11:28pm<br /><br />I have the same problem here.&nbsp;What to do?]]>
   </description>
   <pubDate>Sat, 12 Jan 2008 23:28:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=30072&amp;title=cxtptooltipcontext-very-inefficient#30072</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : Could you point me in the right...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=28449&amp;title=cxtptooltipcontext-very-inefficient#28449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=14">Graham</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 14 November 2007 at 4:27am<br /><br />Could you point me in the right direction on how to achieve this please. Using the callback method I handle the notify message TTN_NEEDTEXT. But how do I then display the tooltip context in this function.<DIV></DIV><DIV></DIV><FONT color=#000000 size=2><P>CXTPToolTipContext::FillInToolInfo requires a pointer to TOOLINFO which is only available in OnToolHitTest.</P><DIV></DIV>Thanks,<DIV></DIV>Graham</FONT>]]>
   </description>
   <pubDate>Wed, 14 Nov 2007 04:27:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=28449&amp;title=cxtptooltipcontext-very-inefficient#28449</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : Hello,   Yes, LPSTR_TEXTCALLBACK...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=28023&amp;title=cxtptooltipcontext-very-inefficient#28023</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 02 November 2007 at 10:34am<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>Yes, LPSTR_TEXTCALLBACK is supported.</DIV><DIV>&nbsp;</DIV><DIV>lpszText&nbsp; = LPSTR_TEXTCALLBACK;</DIV>]]>
   </description>
   <pubDate>Fri, 02 Nov 2007 10:34:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=28023&amp;title=cxtptooltipcontext-very-inefficient#28023</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPToolTipContext very inefficient : Is the only way to get the tooltip...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=28012&amp;title=cxtptooltipcontext-very-inefficient#28012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=14">Graham</a><br /><strong>Subject:</strong> 8645<br /><strong>Posted:</strong> 02 November 2007 at 4:16am<br /><br /><P>Is the only way to get the tooltip context to work is&nbsp;by hooking in to the PreTranslateMessage like in the ToolTipContext sample?</P><DIV>This seems very wasteful, as it is building the tooltip text for pretty much every mouse message. I put it in to my application and just by moving the cursor around on the view it uses a lot of CPU (about 40% on 3.2GHz P4D), and no tooltips are even displayed.</DIV><DIV>&nbsp;</DIV><DIV>Is there a way to use these tooltips, by only having to generate the HTML when the tooltip is displayed (like when using LPSTR_TEXTCALLBACK in OnToolHitTest) rather than after every mouse message? </DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Graham</DIV>]]>
   </description>
   <pubDate>Fri, 02 Nov 2007 04:16:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8645&amp;PID=28012&amp;title=cxtptooltipcontext-very-inefficient#28012</guid>
  </item> 
 </channel>
</rss>