Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPToolTipContext fails to update tips
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPToolTipContext fails to update tips

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolTipContext fails to update tips
    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?
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.