![]() |
Change Menu at Runtime |
Post Reply ![]() |
Author | |
clintsinger ![]() Newbie ![]() Joined: 15 May 2003 Location: Canada Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 16 September 2003 at 5:23pm |
Hi, I would like to be able to take the MenuBar and change what is in it at runtime. In the OnCreate of MainFrm.cpp we have the following line. CXTPCommandBar* pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINFRAME); How do I get the MenuBar as a CMenu* object so I can modify it at runtime? Cheers, Clint |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
You can modify CXTPCommandBar at runtime. Use CXTPCommandBar::GetControls() method to take collection of MenuBar's controls. |
|
![]() |
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 |