Print Page | Close Window

CXTPMenuBar - Getting a sub menu control & hide it

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=18482
Printed Date: 04 October 2024 at 7:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPMenuBar - Getting a sub menu control & hide it
Posted By: tomay3000
Subject: CXTPMenuBar - Getting a sub menu control & hide it
Date Posted: 01 June 2011 at 4:41pm
I have successfully hid a CXTPControl from a CXTPToolBar:

pToolBar->GetControls()->FindControl(ID_FILE_NEW)->SetVisible(FALSE);

but when I try do the same action with a CXTPMenuBar an exception is thrown:

pMenuBar->GetControls()->FindControl(ID_FILE_NEW)->SetVisible(FALSE);

pMenuBar->GetControls() could not find ID_FILE_NEW control.

any ideas ?

help me please

-------------
Product: Codejock ToolkitPro MFC v16.2.0
Platform: Microsoft Windows 8 Pro (64-bit)

Language: Microsoft Visual C++ v6.0 (MFC)



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