Print Page | Close Window

Delete Menu

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=19950
Printed Date: 06 October 2024 at 10:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Delete Menu
Posted By: Ocrana
Subject: Delete Menu
Date Posted: 14 July 2012 at 5:57pm
Hello,

I use a menu from resource. I load it to a commandbar with:
CXTPMenuBar* pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINDIALOG);

How can I dynamic edit the mneu? Like with a feature i want to delete the whole PopupMneu with its parent. BUt I just found a mthod to remove all childs from menu topic.
How can I delete a topic7Parent?

Ingo



Replies:
Posted By: rdhd
Date Posted: 01 February 2013 at 5:56pm
Sometimes I use a CMenu and call LoadMenu. Then I modify the menu. Then I call the CJ LoadMenu API.



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