Print Page | Close Window

How to resolve this?

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=8513
Printed Date: 14 November 2025 at 1:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to resolve this?
Posted By: Ashok
Subject: How to resolve this?
Date Posted: 24 October 2007 at 5:58am

Hi,

Please see the uploaded file and give a solution for that. https://forum.codejock.com/uploads/20071024_055810_test.rar - uploads/20071024_055810_test.rar

 




Replies:
Posted By: Oleg
Date Posted: 24 October 2007 at 8:17am
Hi,
 
Easy solution is to call LoadCommandBars with bSilent parameter = TRUE. but it will not resolve problem that your users will loose customization each time.
 
 try understand why it happened - for example you add/modify menus in runtime. etc.
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ashok
Date Posted: 24 October 2007 at 8:49am

Hi,

  I am dynamically adding the menu like this.

CXTPMenuBar* pMenuBar = pCommandBars->GetMenuBar();

if(pMenuBar == NULL)

{

TRACE0("Failed to create menu bar.\n");

return; // fail to create

}

pMenuBar->LoadMenu(pModifiedMenu,1);

pMenuBar->GetControls()->CreateOriginalControls();

Please help me out to resolve that. ie., that message box should not appear.


Posted By: Oleg
Date Posted: 24 October 2007 at 3:18pm
Hi,
Its right. but I sure later you somehow dynamically modify it.
 
 
as I wrote call  LoadCommandBars with TRUE as second parameter.


-------------
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