Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - I want a delete Menu.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I want a delete Menu.

 Post Reply Post Reply
Author
Message
kiokju View Drop Down
Newbie
Newbie


Joined: 01 September 2006
Location: Korea, South
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote kiokju Quote  Post ReplyReply Direct Link To This Post Topic: I want a delete Menu.
    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);
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.