How to disable the toolbar popup |
Post Reply |
Author | |
BobC
Groupie Joined: 28 April 2017 Location: Longmont, CO Status: Offline Points: 55 |
Post Options
Thanks(0)
Posted: 22 May 2017 at 11:52pm |
When a user right-clicks on a toolbar, a popup menu appears that lets the user uncheck the toolbar and make it disappear. After that, the user can right-click on the menu bar to get the toolbar back.
However, my application does not have a menu bar. How do I disable the ability to turn off the toolbar, because without the menu bar, I don't see a way for the user to get the toolbar back. I have been looking through the documentation, and thought CXTPCommandBars::GetToolbarsPopup() would lead me to the solution, but that looks like a dead end.
|
|
BobC
Groupie Joined: 28 April 2017 Location: Longmont, CO Status: Offline Points: 55 |
Post Options
Thanks(1)
|
Answered my own question: CXTPToolBar::SetCloseable() does what I need. Don't know why I didn't see that method earlier....
|
|
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 |