Print Page | Close Window

CXTTreeCtrl AND CXTPToolTipContext

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=9318
Printed Date: 14 November 2025 at 7:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTreeCtrl AND CXTPToolTipContext
Posted By: MarkusS
Subject: CXTTreeCtrl AND CXTPToolTipContext
Date 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 !!
 



Replies:
Posted By: Oleg
Date Posted: 16 January 2008 at 9:47am
Hi,
 
Attach whole sample to debug what you do.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MarkusS
Date Posted: 17 January 2008 at 3:59am
https://forum.codejock.com/uploads/20080117_035851_TreeCtrl.zip - uploads/20080117_035851_TreeCtrl.zip
Hi, here ist the project


Posted By: Oleg
Date Posted: 17 January 2008 at 10:07am
Hi,
 
You need move OnToolHitTest to TreeCtrl derived class.
 
See changes:
http://forum.codejock.com/uploads/20080117_100705_Tree.zip - uploads/20080117_100705_Tree.zip


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MarkusS
Date 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



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