Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to change CXTPMenuBar in the CXTPCommandBars?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change CXTPMenuBar in the CXTPCommandBars?

 Post Reply Post Reply
Author
Message
littleameng View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote littleameng Quote  Post ReplyReply Direct Link To This Post Topic: How to change CXTPMenuBar in the CXTPCommandBars?
    Posted: 19 March 2009 at 3:22am

I had set the menu in the CXTPCommandBars, Now I want to dynamicly change the menu to another menu, how to do it?

the code:
 
   CXTPCommandBars* pCommandBars = GetCommandBars();
   CXTPCommandBar* pMenuBar = pCommandBars->SetMenu( _T("HomeMenuBar"), IDR_MAINFRAME);
 
thanks! Please help me!
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 March 2009 at 6:13am
Hi,
 
pMenuBar->LoadMenu(&menu);
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.062 seconds.