Print Page | Close Window

why remove submenuitem?

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=6179
Printed Date: 01 July 2024 at 4:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: why remove submenuitem?
Posted By: copycd
Subject: why remove submenuitem?
Date Posted: 22 January 2007 at 1:06am
CXTPCommandBar* pMenuBars = pCommandBars->GetMenuBar();
CXTPControl* pMenu = pMenuBars->GetControl(2);  // Get Debug Item;
 
 
I don't know how get menu item point.
and control.
I want to remove dynamicaly on runtime.
( ex) remove windows item, or Immediate Item
 
Please~   help me.
 
 



Replies:
Posted By: Oleg
Date Posted: 22 January 2007 at 5:58am
Hi,
 
CXTPControl* pMenu = pMenuBars->GetControl(2); 
pMenu->GetCommandBar()->GetControl(3); 
 
Don't forget that user can move popup/delete or duplicate.... Check Samples\CommandBars\DynamicPopups sample.


-------------
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