Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ASSERT show for re-LoadMenuBar again
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASSERT show for re-LoadMenuBar again

 Post Reply Post Reply
Author
Message
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post Topic: ASSERT show for re-LoadMenuBar again
    Posted: 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.
Back to Top
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2008 at 2:56am
Please, anyone who know how to fix my problem.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.048 seconds.