Print Page | Close Window

Office2007 style tooltip in CXTTreeCtrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7220
Printed Date: 12 November 2025 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office2007 style tooltip in CXTTreeCtrl
Posted By: mgampi
Subject: Office2007 style tooltip in CXTTreeCtrl
Date Posted: 23 May 2007 at 5:56pm
Hi;
The last few hours I tried in vain to create Office2007 style tooltips in a CXTTreeCtrl derived class to show detailed infos about tree items. I searched the forum and I also looked at the samples provided with the 11.1.0 release of the toolkit but with no success.
 
What am I doing:
 
1. Insert a member of type CXTPTooltipContext into CXTTreeCtrl class
2. Overwrite OnWndMsg and call tipContext.FilterTooltipMessage()
3. Overwrite OnToolHitTest() and fill in the TOOLINFO as seen in different forum posts:
...
pTI->hwnd = m_hWnd; // handle of tree control
pTI->uId = (UINT_PTR)m_hWnd;
pTI->uFlags |= TTF_IDISHWND;
pTI->lpszText = LPSTR_TEXTCALLBACK;
pTI->uFlags |= TTF_NOTBUTTON|TTF_CENTERTIP;
return 1;
...
4. ?? (I tried to catch TTN_NEEDTEXTA/TTN_NEEDTEXTW in a ON_NOTIFY_REFLECT message handler. But this never gets called!
 
So where's my fault? Any ideas?
 
Many thanks in advance...


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net