Re: Substituting the main menu bar(s)

Tech-Archive recommends: Fix windows errors by optimizing your registry



David Webber <dave@xxxxxxxxxxxxxxxxxxx> loquated like no one had ever
loquated before with:

The MFC application framework provides for two or more menu bars -
one for when no files are open and another for when a document is
open (with further possibilites for different kinds of document).

Has anyone tried to replace an entire menu bar and its drop down
menus with a new menu resource? How is it best done?

[I have in mind the idea that people can select a language, and then
a new menu bar is used with items in that language, but the same
command IDs.]
Dave

When the window is created I grab the menu off of it and pass it to a
localization class that maps menus to string tables (stored in an XML file.)
This type of approach (grabbing the menu and passing it to the localization
manager) also allows me to let users change the language on the fly.

WTH

--
"I'm not disappointed - just disappointed." - Kevin Keegan


.



Relevant Pages