Print Page | Close Window

CXTPToolTipContext fails to update tips

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14718
Printed Date: 12 December 2024 at 1:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolTipContext fails to update tips
Posted By: rdhd
Subject: CXTPToolTipContext fails to update tips
Date Posted: 10 July 2009 at 11:14am
For some reason CXTPToolTipContext::FilterToolTipMessageHelper is caching the control id and the window handle and refuses to tip if neither of these values change when OnToolHitTest is called. So even though I have tips that depend on the location of the mouse when over a window, CJ refuses to tip. This is not what MFC does and I wonder why CJ even bothers to do cache data. We keep having to code around this issue and I really see no good reason why CJ just doesn't let us tip when we want to tip.
 
This causes us problems for list controls, tree controls and just about any window that displays multiple sets of data for which I want to provide tips.
 
Heck, even if I call FillInToolInfo and the actual tip string changes, CJ still refuses to display the new tip. The result is either no tip appears, or once one appears, it never changes (or moves) as the user is moving about in our window. We need to change the tip based on the location of the mouse in the window. So the window handle and control ID are constant BUT THE TIP IS NOT.
 
So what call can I make when OnToolHitTest is called so that CJ tip context effectively "resets" so our tips work like they used to?



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