I want a delete Menu. |
Post Reply |
Author | |
kiokju
Newbie Joined: 01 September 2006 Location: Korea, South Status: Offline Points: 9 |
Post Options
Thanks(0)
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);
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |