Print Page | Close Window

How to disable a CXTPMenuBar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2725
Printed Date: 06 October 2024 at 1:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to disable a CXTPMenuBar?
Posted By: nicros
Subject: How to disable a CXTPMenuBar?
Date Posted: 15 August 2005 at 4:09pm
I have a CXTPMenuBar, and I would like to disable (grey out) everything on it while a process is active.

I have not figured out how to do it though, any suggestions?

Thanks



Replies:
Posted By: Oleg
Date Posted: 16 August 2005 at 2:41am

pMenuBar->GetControls();

pMenuBar->GetControl(i)->SetEnabled(FALSE);



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


Posted By: nicros
Date Posted: 16 August 2005 at 9:58am
Thanks Oleg.

I already tried this, there are two problems:
1.  It inactivates each item in the menu bar rather than the bar itself... there is no way (like in a toolbar) to disable the whole thing?

2.  This command only greys out the item at GetControl(i) if I click on it.  I have tried all kinds of controls, and all kinds of redrawing, no luck so far.

Thanks


Posted By: Oleg
Date Posted: 17 August 2005 at 8:11am

Also additinally try pMenuBar->EnableWindow(FALSE);



-------------
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