Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Office2007 style tooltip in CXTTreeCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office2007 style tooltip in CXTTreeCtrl

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1210
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: Office2007 style tooltip in CXTTreeCtrl
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.