Print Page | Close Window

Bug: CXTPToolTipContext::FilterToolTipMessageHelp

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=18309
Printed Date: 19 June 2025 at 5:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug: CXTPToolTipContext::FilterToolTipMessageHelp
Posted By: MacW
Subject: Bug: CXTPToolTipContext::FilterToolTipMessageHelp
Date Posted: 03 May 2011 at 1:15pm
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: MacW
Date Posted: 02 June 2011 at 5:20am
Any comments from codejock on this?

Nothing of this stuff is proper virtual so changes can be made only in the source code.



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