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

How to add menu dynamically?

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


Joined: 29 April 2009
Location: China
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote chas Quote  Post ReplyReply Direct Link To This Post Topic: How to add menu dynamically?
    Posted: 19 May 2009 at 9:41pm

I used the code:

 CMenu* pMenu = GetMenu();

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
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: 20 May 2009 at 1:59am
Hi,
 
Please check our samples and search forum. Discussed 1000 times. You need pCommandBars->GetMenuBar() method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
chas View Drop Down
Newbie
Newbie


Joined: 29 April 2009
Location: China
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote chas Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2009 at 2:39am
OK.
 
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.047 seconds.