Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPToolTipContext  in popup window...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPToolTipContext in popup window...

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolTipContext in popup window...
    Posted: 17 June 2011 at 11:22am
CXTPToolTipContext::FilterToolTipMessageHelper does not seem to handle TTF_ALWAYSTIP correctly.

If you create a CXTPToolTipContext in a popup window, the tooltip never shows if the popup has the focus and not the parent / application main frame.

The CXTPToolTipContext::FilterToolTipMessageHelper correctly checks for the TTF_ALWAYSTIP in line 2198:

if ((tiHit.uFlags & TTF_ALWAYSTIP) || bTopParentActive)

to determine if a tooltip should be displayed.

But in line 2045 it does not check for that flag and destroys the tooltip if the parent is not active:

BOOL bTopParentActive = CXTPDrawHelpers::IsTopParentActive(pWndHost->GetSafeHwnd());

if (m_pToolTip->GetSafeHwnd() && m_pToolTip->IsWindowVisible() && !bTopParentActive)
...

this cannot work, right?
Back to Top
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2021 at 11:19am
This issue is fixed. Don't know when it was fixed.

But I needed this in my product now and it works.

Mentioning here so that it can help someone.
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.141 seconds.