Print Page | Close Window

Seems TTF_ALWAYSTIP does not work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13682
Printed Date: 28 February 2025 at 7:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Seems TTF_ALWAYSTIP does not work
Posted By: VitVal
Subject: Seems TTF_ALWAYSTIP does not work
Date Posted: 14 March 2009 at 10:36am
It seems the TTF_ALWAYSTIP does not work (v13.0.0).
I tried make toolbar to display tooltips always. For the reason I set:
pTI->uFlags |= TTF_ALWAYSTIP;
in the OnToolHitTest(CPoint point, TOOLINFO* pTI) of the class derived from CXTPToolBar.
The result is: a tooltip (of the toolbar belonging to inactive frame window) is shown on a short period of time and disappear.
The possible reason: CXTPToolTipContext::FilterToolTipMessageHelper have such code
  if (m_pToolTip->GetSafeHwnd() && m_pToolTip->IsWindowVisible() && !bTopParentActive)
  {
   m_pToolTip->SendMessage(TTM_ACTIVATE, FALSE);
   return;
  }
- probably  "&& !bTopParentActive"  need the addition "&& !(tiHit.uFlags & TTF_ALWAYSTIP)"



Replies:
Posted By: Oleg
Date Posted: 16 March 2009 at 7:29am
Hi,
 
yes, TTF_ALWAYSTIP is not supported by CXTPToolTipContext.


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


Posted By: VitVal
Date Posted: 16 March 2009 at 8:39am
Thanks.
Does the above correction will help? Or I can face with some hidden problems?
 



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