Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - ToolTip and HitTest
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ToolTip and HitTest

 Post Reply Post Reply
Author
Message
Pixbyte View Drop Down
Groupie
Groupie


Joined: 11 April 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pixbyte Quote  Post ReplyReply Direct Link To This Post Topic: ToolTip and HitTest
    Posted: 05 February 2011 at 7:03am
Hello,

I use part of a Tooltip sample in my software.  There I use the "OnToolHitTest" function from the sample. My problem is, that if I move through a visible CommandBar Menu it will show the underlaying buttons tooltip, too. I think cause the "HitTest" is not blocked by the CommandBar Menu. 

So my question is, do anybody now how to optimize the "OnToolHitTest" function that it will block the Tooltip while a Commandbar Menu is visible?

Ocrana
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2011 at 10:53am
Add in top of your method:

if (XTPMouseManager()->IsTrackedLock(NULL) || XTPMouseManager()->IsMouseLocked())
return -1;

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pixbyte View Drop Down
Groupie
Groupie


Joined: 11 April 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pixbyte Quote  Post ReplyReply Direct Link To This Post Posted: 06 February 2011 at 7:55am
Thanks,
I work now with OnUninitCommandsPopup and OnInitCommandsPopup to know when a menu is active.
Ocrana
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.203 seconds.