![]() |
ASSERT show for re-LoadMenuBar again |
Post Reply
|
| Author | |
hikaroute
Groupie
Joined: 05 September 2007 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Topic: ASSERT show for re-LoadMenuBar againPosted: 16 May 2008 at 7:53am |
|
I load menubar for my application already(MDI). But in sometime my application have to change to another menu, then I re load menubar manually again by using m_pMenubar->LoadMenuBar(); The ASSERT error dialog show suddenly.
If I need to re-load menubar again, may be I have to free the current manubar before. Then How should I do.
And if I have 2 menus to change by myself, how to cancel the 1st menu and set the 2nd to the app?
Thank you.
|
|
![]() |
|
hikaroute
Groupie
Joined: 05 September 2007 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2008 at 2:56am |
|
Please, anyone who know how to fix my problem.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2008 at 8:39am |
|
Hi,
Maybe solution for you is to add all controls to one MenuBar and then Show/Hide them:
pMenuBar->GetControl(i)->SetVisible(FALSE);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |