Print Page | Close Window

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

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12475
Printed Date: 28 February 2025 at 5:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to Hide The "Add or Remove Buttons" Menu Item
Posted By: nicolas
Subject: How to Hide The "Add or Remove Buttons" Menu Item
Date 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!



Replies:
Posted By: Oleg
Date Posted: 20 October 2008 at 7:05am
Hi,
 
Add
pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: nicolas
Date 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



Posted By: Oleg
Date Posted: 22 October 2008 at 1:46am
Can't reproduce it. What another code you call for toolbar?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: nicolas
Date 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);


Posted By: zengsiyu
Date Posted: 13 November 2008 at 1:02am

CXTPToolBar::ShowExpandButton(FALSE)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net