Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How do I set the title of a tooltip?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I set the title of a tooltip?

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

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 954
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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?
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: 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
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.