Print Page | Close Window

ASSERT show for re-LoadMenuBar again

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10653
Printed Date: 15 November 2025 at 4:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ASSERT show for re-LoadMenuBar again
Posted By: hikaroute
Subject: ASSERT show for re-LoadMenuBar again
Date 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.



Replies:
Posted By: hikaroute
Date Posted: 22 May 2008 at 2:56am
Please, anyone who know how to fix my problem.


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net