Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Undockable and uncustomizable  Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Undockable and uncustomizable Toolbar

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


Joined: 20 June 2005
Location: Russian Federation
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote VoimiX Quote  Post ReplyReply Direct Link To This Post Topic: Undockable and uncustomizable Toolbar
    Posted: 20 June 2005 at 9:32am
How can I make Toolbar undockable and uncustomizable?
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: 20 June 2005 at 9:39am
Maybe set Customizable property of toolbar to False, Set ShowExpandButtonAlways to False, the use the EnableDocking method to set the xtpFlagAlignBottom, xtpFlagAlignTop, xtpFlagAlignLeft, and xtpFlagAlignRight flags.
Back to Top
VoimiX View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Location: Russian Federation
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote VoimiX Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 9:56am
But how? Customizable property is protected.
And what does "m_bBuiltIn" property mean?

Edited by VoimiX
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: 20 June 2005 at 10:41am
I think:
CXTPCommandBar::EnableCustomization(BOOL bEnable)
Back to Top
VoimiX View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Location: Russian Federation
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote VoimiX Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 10:52am
After EnableDocking method my Toolbar is still dockable
Back to Top
VoimiX View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Location: Russian Federation
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote VoimiX Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 10:58am
And how can I remove "Toolbar Options" chevron from Toolbar?
And I couldn't find ShowExpandButtonAlways property.
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: 20 June 2005 at 11:04am
Here is a link to ShowExpandButtonAlways.
To prevent toolbar from moving at all try : EnableDocking(False /*Or try 0*/)

Back to Top
VoimiX View Drop Down
Newbie
Newbie


Joined: 20 June 2005
Location: Russian Federation
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote VoimiX Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 11:13am
Thanks, Everything is OK
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: 20 June 2005 at 11:13am
Oh I forgot.....Built-In indicates if the command bar is a user created command bar.  This means that the user created it via the Customization dialog.  Built-In toolbars are toolbars the developer (you) added.
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.141 seconds.