![]() |
Locking CommandBars |
Post Reply
|
| Author | |
umcbrad
Newbie
Joined: 26 April 2005 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Topic: Locking CommandBarsPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 August 2005 at 5:09am |
|
Hi, try |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
umcbrad
Newbie
Joined: 26 April 2005 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 August 2005 at 8:52am |
|
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 August 2005 at 3:38am |
|
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 |