Print Page | Close Window

CXTPToolTipContext in popup window...

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=18562
Printed Date: 16 April 2024 at 1:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolTipContext in popup window...
Posted By: MacW
Subject: CXTPToolTipContext in popup window...
Date 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?



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



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