Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to hide "Add or Remove Buttons"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to hide "Add or Remove Buttons"

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


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Topic: How to hide "Add or Remove Buttons"
    Posted: 01 October 2007 at 7:01am
Hi, I have a toolbar in a resizable dialog, I want to keep the toolbar on one line so I set the xtpFlagHideWrap flag, but I do want to be able to access any toolbar buttons that can't fit on the screen so I call ShowExpandButton( TRUE ).  This all works as expected.
 
But I also don't want to allow customization so I call EnableCustomization( FALSE ), but when the expand button is clicked it still shows the "Add or Remove Buttons" submenu (see image)! Is there any way to stop this from appearing?
 
Thanks.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2007 at 8:43am
Hi,
 
Its pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways option.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2007 at 9:40am
Brilliant, just what I needed! :)
Thanks Oleg.
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.031 seconds.