Print Page | Close Window

I want a delete Menu.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6626
Printed Date: 30 January 2025 at 12:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I want a delete Menu.
Posted By: kiokju
Subject: I want a delete Menu.
Date Posted: 13 March 2007 at 12:42am
 
 I use this code
 
 pCmdUI->m_pMenu->RemoveMenu(pCmdUI->m_nID, MF_BYCOMMAND);
 
 but It is error!! ( not delete, I think m_pMenu is null )
 
 How I delete menu??
 
 I create Menu like this.
 
 pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINFRAME);



Replies:
Posted By: Oleg
Date Posted: 16 March 2007 at 12:28am
Hi,
If you use CommandBars, menu will be always NULL. You have use CXTPControls methods to add/remove menus. Check DynamicPopups and Notification samples.


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