Locking CommandBars |
Post Reply |
Author | |
umcbrad
Newbie Joined: 26 April 2005 Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 29 August 2005 at 4:50pm |
How can I lock a CommandBar so that it cannot be moved or at least not be undocked? Thanks, Brad |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, try |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
umcbrad
Newbie Joined: 26 April 2005 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
I see this function, but it appears that just about the entire CommandBars class depends on the use of EnableDocking. Also, Init CommandBars in CXTPFrameWnd calls EnableDocking, so I guess I will have to create a new frame class and override that function? How do you suggest that I create a commandbar in a CXTPFrameWnd derived class without calling EnableDocking()? The SetMenu and Add function is CXTPCommandBars both end up calling EnableDocking(). To me this appears like a bad way to go about it, but I'm not sure what the alternatives are. Thanks, Brad |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You must call this method for each toolbar:
pToolBar->EnableDocking(xtpFlagHideWrap); pMenuBar->EnableDocking(xtpFlagStretched); ... |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |