Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to disable the toolbar popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to disable the toolbar popup

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


Joined: 28 April 2017
Location: Longmont, CO
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobC Quote  Post ReplyReply Direct Link To This Post Topic: How to disable the toolbar popup
    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.
Back to Top
BobC View Drop Down
Groupie
Groupie


Joined: 28 April 2017
Location: Longmont, CO
Status: Offline
Points: 55
Post Options Post Options   Thanks (1) Thanks(1)   Quote BobC Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2017 at 9:01am
Answered my own question: CXTPToolBar::SetCloseable() does what I need. Don't know why I didn't see that method earlier....
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.171 seconds.