Omit "Add or Remove Buttons" from toolbar |
Post Reply |
Author | |
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 16 March 2004 at 1:49pm |
How can I disable the ability to "Add or Remove Buttons" option from the CXTPToolBar controls? Thanks, Don Metzler
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Set bShowExpandButtonAlways to False. This is a member of XTP_COMMANDBARS_OPTIONS.
Edited by SuperMario |
|
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
I can get the XTP_COMMANDBARS_OPTIONS using CXTPCommandBars::GetCommandBarsOptions(). How do I set the options? Thanks, Don |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Try this:
CXTPCommandBars* pCommandBars = GetCommandBars(); pCommandBars->GetCommandBarsOptions()-> bShowExpandButtonAlways = False; Edited by SuperMario |
|
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
OK - great - thanks. I was looking for a Set() method of some sort. Don
|
|
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 |