Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Seems TTF_ALWAYSTIP does not work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Seems TTF_ALWAYSTIP does not work

 Post Reply Post Reply
Author
Message
VitVal View Drop Down
Newbie
Newbie


Joined: 14 March 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote VitVal Quote  Post ReplyReply Direct Link To This Post Topic: Seems TTF_ALWAYSTIP does not work
    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)"
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 16 March 2009 at 7:29am
Hi,
 
yes, TTF_ALWAYSTIP is not supported by CXTPToolTipContext.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
VitVal View Drop Down
Newbie
Newbie


Joined: 14 March 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote VitVal Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2009 at 8:39am
Thanks.
Does the above correction will help? Or I can face with some hidden problems?
 
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.062 seconds.