Print Page | Close Window

On Menu Visible?

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=9766
Printed Date: 14 November 2025 at 7:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: On Menu Visible?
Posted By: robosport
Subject: On Menu Visible?
Date Posted: 02 March 2008 at 8:24pm
What is the best way to find out from the client program when a popup menu on an XTPCommandBar becomes visible/active, and again when it becomes hidden? (i.e. when the user clicks on a menu to make it visible, and when the user clicks an item or clicks away to make the menu hidden)
 
I need to stop rendering something in the background when the menu is covering part of it.
 
Thanks.



Replies:
Posted By: robosport
Date Posted: 02 March 2008 at 9:22pm
BTW... I'm using GetClipBox from the window in the background to determine if it is partially or completely obscured (by a menu or anything else) during my painting.
 
I'm just checking to see if there is a better way.

Thanks!


Posted By: robosport
Date Posted: 02 March 2008 at 9:46pm
The only problem with that technique (GetClipBox) is that it leaves menus painted on the background even when another sub menu might be selected.
 
So I'm back to asking if there is a way to know when a menu or submenu has become visible or hidden.
 
Thank you.


Posted By: Oleg
Date Posted: 03 March 2008 at 10:22am
Hi,
 
You can override CXTPCommandBars::OnTrackingModeChanged method and change if GetMouseManager()->IsTrackedLock() is TRUE.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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