![]() |
CXTTreeCtrl AND CXTPToolTipContext |
Post Reply
|
| Author | |
MarkusS
Newbie
Joined: 16 January 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTTreeCtrl AND CXTPToolTipContextPosted: 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 !!
![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 January 2008 at 9:47am |
|
Hi,
Attach whole sample to debug what you do.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MarkusS
Newbie
Joined: 16 January 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2008 at 3:59am |
|
uploads/20080117_035851_TreeCtrl.zip
Hi, here ist the project
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2008 at 10:07am |
|
Hi,
You need move OnToolHitTest to TreeCtrl derived class.
See changes:
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MarkusS
Newbie
Joined: 16 January 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |