Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Omit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Omit "Add or Remove Buttons" from toolbar

 Post Reply Post Reply
Author
Message
dmetzler View Drop Down
Newbie
Newbie


Joined: 09 February 2004
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote dmetzler Quote  Post ReplyReply Direct Link To This Post Topic: Omit "Add or Remove Buttons" from toolbar
    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

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2004 at 2:53pm
Set  bShowExpandButtonAlways to False.  This is a member of  XTP_COMMANDBARS_OPTIONS.

Edited by SuperMario
Back to Top
dmetzler View Drop Down
Newbie
Newbie


Joined: 09 February 2004
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote dmetzler Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2004 at 3:44pm

I can get the XTP_COMMANDBARS_OPTIONS using CXTPCommandBars::GetCommandBarsOptions().  How do I set the options?

Thanks,

Don

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2004 at 5:26pm
Try this:

CXTPCommandBars* pCommandBars = GetCommandBars();
 pCommandBars->GetCommandBarsOptions()-> bShowExpandButtonAlways = False;





Edited by SuperMario
Back to Top
dmetzler View Drop Down
Newbie
Newbie


Joined: 09 February 2004
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote dmetzler Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2004 at 5:35pm

OK - great - thanks.  I was looking for a Set() method of some sort.

Don

 

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.172 seconds.