How to disable a CXTPMenuBar? |
Post Reply |
Author | |
nicros
Newbie Joined: 12 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
pMenuBar->GetControls(); pMenuBar->GetControl(i)->SetEnabled(FALSE); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
nicros
Newbie Joined: 12 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Also additinally try pMenuBar->EnableWindow(FALSE); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |