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

CXTTreeCtrl AND CXTPToolTipContext

 Post Reply Post Reply
Author
Message
MarkusS View Drop Down
Newbie
Newbie


Joined: 16 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote MarkusS Quote  Post ReplyReply Direct Link To This Post Topic: CXTTreeCtrl AND CXTPToolTipContext
    Posted: 16 January 2008 at 5:19am
Hi,
 
is it possible to Set a HTML Tooltip on every single TreeItem ?
 
How Di i activate the

m_pTooltipContext ??

 
 
My first Try , i got Access on the Item, but how do i launch the Tooltip ??:
 
 

INT_PTR CTreeCtrlDlg::OnToolHitTest(CPoint point, TOOLINFO* pTI) const

{

INT_PTR nHit = CWnd::OnToolHitTest(point, pTI);

if (nHit != -1)

return nHit;

 

int iPosX = point.x;

HTREEITEM iItem = m_treeSelect.HitTest(point);

if(iItem)

{

CString csText = m_treeSelect.GetItemText(iItem);

TRACE(csText+"\n");

CRect rect;

m_treeSelect.GetItemRect(iItem,&rect,false);

CString strTip = csText +"<p>Hi Forum<p>testing <p>blabla";

m_pTooltipContext->FillInToolInfo(pTI, m_hWnd, rect,nHit, strTip);
 
DOESNT WORK !!
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2008 at 9:47am
Hi,
 
Attach whole sample to debug what you do.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MarkusS View Drop Down
Newbie
Newbie


Joined: 16 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote MarkusS Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2008 at 3:59am
uploads/20080117_035851_TreeCtrl.zip
Hi, here ist the project
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2008 at 10:07am
Hi,
 
You need move OnToolHitTest to TreeCtrl derived class.
 
See changes:
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MarkusS View Drop Down
Newbie
Newbie


Joined: 16 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote MarkusS Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2008 at 11:33am
Hi Oleg,
Thank you very much,
 
oh no, this solution was soo easy, sorry, that i did't get it alone...
 
Thanks for your fast help !!
 
Greetings from good old germany,
Markus
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.031 seconds.