![]() |
How to Hide The "Add or Remove Buttons" Menu Item |
Post Reply ![]() |
Author | |
nicolas ![]() Newbie ![]() Joined: 08 October 2008 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() 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! |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Add
pCommandBars->GetCommandBarsOptions()->bShowExpandButtonAlways = FALSE;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
nicolas ![]() Newbie ![]() Joined: 08 October 2008 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Can't reproduce it. What another code you call for toolbar?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
nicolas ![]() Newbie ![]() Joined: 08 October 2008 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
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); |
|
![]() |
|
zengsiyu ![]() Newbie ![]() Joined: 13 November 2008 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
CXTPToolBar::ShowExpandButton(FALSE) |
|
![]() |
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 |