Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to resolve this?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to resolve this?

 Post Reply Post Reply
Author
Message
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Topic: How to resolve this?
    Posted: 24 October 2007 at 5:58am

Hi,

Please see the uploaded file and give a solution for that.uploads/20071024_055810_test.rar

 

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: 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
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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.
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: 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
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.046 seconds.