![]() |
Invisible in View |
Post Reply ![]() |
Author | |
gmail ![]() Groupie ![]() Joined: 24 February 2008 Status: Offline Points: 45 |
![]() ![]() ![]() ![]() ![]() Posted: 25 March 2009 at 3:31pm |
When I create my CXTPCommandBars in my CMDI app, they always show up in View section of my main menu. With the code below, how to make them invisible to View submenu?
CXTPToolBar* pBar=(CXTPToolBar*)pCommandBars->Add(_T("Toolbar"),xtpBarTop); pBar->ShowExpandButton(FALSE); pBar->SetShowGripper(0); pBar->EnableDocking(0); pBar->SetBarID(13); |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Add
pBar->SetContextMenuPresent(FALSE);
or if you want to prevent it from closing pBar->SetClasable(FALSE);
|
|
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 |