![]() |
How to resolve this? |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: How to resolve this?Posted: 24 October 2007 at 5:58am |
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |