![]() |
How to add menu dynamically? |
Post Reply ![]() |
Author | |
chas ![]() Newbie ![]() Joined: 29 April 2009 Location: China Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() 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!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Please check our samples and search forum. Discussed 1000 times. You need pCommandBars->GetMenuBar() method.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
chas ![]() Newbie ![]() Joined: 29 April 2009 Location: China Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
OK.
Thanks!
|
|
![]() |
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 |