![]() |
How do I set the title of a tooltip? |
Post Reply
|
| Author | |
rdhd
Senior Member
Joined: 13 August 2007 Location: United States Status: Offline Points: 954 |
Post Options
Thanks(0)
Quote Reply
Topic: How do I set the title of a tooltip?Posted: 18 October 2007 at 12:10pm |
|
I have modified our MFC frame to use CXTPToolTipContext. I create an instance of the class and call SetModuleToolTipContext.
When OnToolHitText is called, I see that the module state data no longer has the m_pToolTip member set so I cannot get the module member and send the TTM_SETTITLE to the tooltip control.
So I added code to our frame to allow me access to the CXTPToolTipContext. But the m_pToolTip member is protected and I don't see a method on CXTPToolTipContext that allows me access to the m_pToolTip member.
How do I send the TTM_SETTITLE message to the m_pToolTip member of CXTPToolTipContext or otherwise set the title?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 October 2007 at 12:41am |
|
Hi,
Set title in FillInToolInfo: CXTPToolTipContext::FillInToolInfo(pTI, m_hWnd, m_pItemHot->GetHitTestRect(),
nHit, strTip, strTitle strDescription); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |