<?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 in popup tree control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Tooltip in popup tree control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 14:57:21 +0000</pubDate>
  <lastBuildDate>Tue, 21 Nov 2006 03:46:58 +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=5563</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 in popup tree control : Hello Oleg; I took your reply...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17510&amp;title=tooltip-in-popup-tree-control#17510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 5563<br /><strong>Posted:</strong> 21 November 2006 at 3:46am<br /><br /><P>Hello Oleg;</P><P>I took your reply as a hint and wrote my own OnNotify() function. After changing the flag for the second parameter of SetWindowPos to HWND_TOPMOST it works as expected. Here are my small changes in my treectrl class function OnNotify() (perhaps this changes should also go into your CXTReeCtrlBase class:</P><FONT size=2><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P align=left></FONT><FONT face="Courier New, Courier, mono" color=#0000ff size=2>if</FONT><FONT size=2><FONT face="Courier New, Courier, mono"> (hWnd != NULL)</P><DIV align=left></FONT><FONT face="Courier New, Courier, mono">{</FONT></DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P dir=ltr align=left></FONT><FONT color=#008000 size=2><FONT face="Courier New, Courier, mono">// make sure the tooltip is at the top of the "Z" order, otherwise</FONT></P></FONT><FONT size=2><P dir=ltr align=left></FONT><FONT color=#008000 size=2><FONT face="Courier New, Courier, mono">// it will appear behind popup windows....</FONT></P></FONT><FONT size=2><P dir=ltr align=left><FONT face="Courier New, Courier, mono">::SetWindowPos(hWnd, <strong><FONT color=#0000ff>HWND_TOPMOST</FONT></strong>, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);</FONT></P></BLOCKQUOTE><P align=left><FONT face="Courier New, Courier, mono">}</FONT></P></BLOCKQUOTE><P>Martin</P><DIV></FONT><FONT size=2></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 21 Nov 2006 03:46:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17510&amp;title=tooltip-in-popup-tree-control#17510</guid>
  </item> 
  <item>
   <title><![CDATA[Tooltip in popup tree control : Hi Oleg;  This happens with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17508&amp;title=tooltip-in-popup-tree-control#17508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 5563<br /><strong>Posted:</strong> 21 November 2006 at 2:57am<br /><br />Hi Oleg;<DIV>&nbsp;</DIV><DIV>This happens with the <FONT size=2>CXTTreeCtrl! I'm not using the CTreeCtrl. I create the control in this way:</FONT></DIV><DIV><FONT size=2><P>CXTTreeCtrl::CreateEx(WS_EX_TOOLWINDOW | (pParent-&gt;GetExStyle() &amp; WS_EX_LAYOUTRTL), WS_CHILD | WS_BORDER | WS_VSCROLL | TVS_DISABLEDRAGDROP | TVS_TRACKSELECT, CRect(0, 0, 0, 0), pParent, 0)</P></FONT></DIV><DIV>Am I missing any necessary style?</DIV><DIV>&nbsp;</DIV><DIV>Martin</DIV>]]>
   </description>
   <pubDate>Tue, 21 Nov 2006 02:57:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17508&amp;title=tooltip-in-popup-tree-control#17508</guid>
  </item> 
  <item>
   <title><![CDATA[Tooltip in popup tree control : It is known CTreeCtrl problem.  here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17496&amp;title=tooltip-in-popup-tree-control#17496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5563<br /><strong>Posted:</strong> 20 November 2006 at 1:58pm<br /><br />It is known CTreeCtrl problem.<DIV>&nbsp;</DIV><DIV>here is code we use in CXTTreeCtrl to fix it:</DIV><DIV>&nbsp;</DIV><DIV>BOOL CXTTreeBase::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)<BR>{<BR>&nbsp;NMHDR* pNMHDR = (NMHDR*)lParam;</DIV><DIV>&nbsp;switch (pNMHDR-&gt;code)<BR>&nbsp;{<BR>&nbsp;case TTN_SHOW:<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;// get a pointer to the tooltip control.<BR>&nbsp;&nbsp;&nbsp;HWND hWnd = TreeView_GetToolTips(m_pTreeCtrl-&gt;m_hWnd);<BR>&nbsp;&nbsp;&nbsp;if (hWnd != NULL)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// make sure the tooltip is at the top of the "Z" order, otherwise<BR>&nbsp;&nbsp;&nbsp;&nbsp;// it will appear behind popup windows....<BR>&nbsp;&nbsp;&nbsp;&nbsp;::SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;break;<BR>&nbsp;}</DIV><DIV>&nbsp;return m_pTreeCtrl-&gt;CTreeCtrl::OnNotify(wParam, lParam, pResult);<BR>}</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 13:58:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17496&amp;title=tooltip-in-popup-tree-control#17496</guid>
  </item> 
  <item>
   <title><![CDATA[Tooltip in popup tree control : Hi;  I have troubles in displaying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17489&amp;title=tooltip-in-popup-tree-control#17489</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 5563<br /><strong>Posted:</strong> 20 November 2006 at 11:33am<br /><br />Hi;<DIV>&nbsp;</DIV><DIV>I have troubles in displaying a tooltip within a popup tree control.</DIV><DIV>See attached image.</DIV><DIV>&nbsp;</DIV><DIV>Any ideas whats wrong?</DIV><DIV>&nbsp;</DIV><DIV>Martin</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20061120_113248_Tooltip.bmp" border="0"></DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 11:33:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5563&amp;PID=17489&amp;title=tooltip-in-popup-tree-control#17489</guid>
  </item> 
 </channel>
</rss>