Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to get menu id?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get menu id?

 Post Reply Post Reply
Author
Message
suchout View Drop Down
Groupie
Groupie


Joined: 29 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote suchout Quote  Post ReplyReply Direct Link To This Post Topic: How to get menu id?
    Posted: 29 September 2009 at 10:28pm

I used the code:

 CMenu *amenu;
 amenu = pCommandBars->GetMenuBar()->GetMenu();
 UINT id = amenu->GetMenuItemID(0);

in CMainFrame(which is derived from CXTPFrameWnd) to access menu bar. But pMenu is always NULL.
 
But in common MFC program, the pMenu will not be NULL.
 
Does anyone can help me, how can I access menu bar in XTreme toolkit?
 
Thanks!
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.035 seconds.