Print Page | Close Window

How do I set the title of a tooltip?

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


Topic: How do I set the title of a tooltip?
Posted By: rdhd
Subject: How do I set the title of a tooltip?
Date 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?



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



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