Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Invisible in View
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Invisible in View

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: Invisible in View
    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);
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: 26 March 2009 at 2:49am
Hi,
Add
pBar->SetContextMenuPresent(FALSE);
or if you want to prevent it from closing pBar->SetClasable(FALSE);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.046 seconds.