Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to Hide The "Add or Remove Buttons" Menu Item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Hide The "Add or Remove Buttons" Menu Item

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


Joined: 08 October 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote nicolas Quote  Post ReplyReply Direct Link To This Post Topic: How to Hide The "Add or Remove Buttons" Menu Item
    Posted: 18 October 2008 at 2:53am
How to Hide The "Add or Remove Buttons" Menu Item when the showexpandbutton show?

I need show the expandbutton but not include the "Add or Remove Buttons" Menu Item!



Thanks!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2008 at 7:05am
Hi,
 
Add
pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
nicolas View Drop Down
Newbie
Newbie


Joined: 08 October 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote nicolas Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2008 at 4:23am
Originally posted by oleg oleg wrote:

Hi,
 
Add
pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;


when set bShowExpandButtonAlways = FALSE and set m_pMainToolbar->EnableDocking(xtpFlagStretched)
the tool bar will wrap.

but when not  set EnableDocking(xtpFlagStretched), toolbar will not full fill the toolbar area.


how to make it autoresize ?

thanks

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 October 2008 at 1:46am
Can't reproduce it. What another code you call for toolbar?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
nicolas View Drop Down
Newbie
Newbie


Joined: 08 October 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote nicolas Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2008 at 10:54pm
    m_pMainToolbar->EnableDocking(xtpFlagStretched);
    m_pMainToolbar->ModifyBarStyle(CBRS_GRIPPER, 0);
    m_pMainToolbar->SetCloseable(FALSE); 
        pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;
    pCommandBars->GetPaintManager()->m_bFlatToolBar = TRUE;
    pCommandBars->GetToolTipContext()->SetStyle(xtpToolTipStandard);
Back to Top
zengsiyu View Drop Down
Newbie
Newbie


Joined: 13 November 2008
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote zengsiyu Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2008 at 1:02am

CXTPToolBar::ShowExpandButton(FALSE)

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