![]() |
Bug: CXTPToolTipContext::FilterToolTipMessageHelp |
Post Reply ![]() |
Author | |
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
Any comments from codejock on this?
Nothing of this stuff is proper virtual so changes can be made only in the source code. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |