![]() |
Changing menu at runtime |
Post Reply ![]() |
Author | ||
wal33604 ![]() Newbie ![]() Joined: 10 November 2005 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 24 November 2005 at 7:40am |
|
Using Xtreme Toolkit Pro 9.51
I am working on an application that must change modes at runtime (meaning the menu and toolbars must be completely swapped). I first remove the current menu and toolbars using code similar to the following:
This works all fine and well. However, when I go to set a new menu using CXTPCommandBars::SetMenu() I get a debug assertion on line 134 of XTPCommandBars.cpp where it checks to see of the CXTPMenuBar* is NULL. The program continues producing the desired results after the assertion. My questions: Is this is something that can be ignored since the error won't be produced in a Release build (although it will get annoying while debugging). Is there way to do what I need to do that will not produce the assertion? |
||
![]() |
||
wal33604 ![]() Newbie ![]() Joined: 10 November 2005 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
|
I solved this by doing something similar to the following:
Rather than using SetMenu to swap the menu I used
|
||
![]() |
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 |