Print Page | Close Window

Invisible in View

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=13811
Printed Date: 28 February 2025 at 4:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Invisible in View
Posted By: gmail
Subject: Invisible in View
Date 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);



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



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