PDA

View Full Version : Main menu missing if undocked when saving workspace



slynes
08-19-2010, 09:49 AM
Objective Toolkit 10.1...

We use the workspace manager to support docking control bars and menus. There is some kind of bug where when we use SECWorkspaceManagerEx::OpenWorkspace to restore the layout the main menu is missing if it was undocked when the application was closed and the workspace saved. Not only is the menu bar missing, but going in to the customize window and checking the main menu does not work. First the checkbox checks on and won't go off (as I would expect) but then when we press OK, the main menu is not restored and when we return to the customization, the check is off again.

Try as I may to force the menu to redock in hopes of restoring the menu at either shutdown or when the app starts, I don't see a way to get the control bar class pointer, like I can with other control bars, so I can force the redocking. Anyone know how to force a redock of the main menu when I'm shutting down, so it won't be missing when we restore the workspace?

Thanks,

Sean.