Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to reload menus for proper language in MDI application Collapse All
Subject Author Date
Mateusz Zawilo Jul 11, 2008 - 2:05 AM


I have MDI app with 3 menus, for different file types. Problem is that when i switch lang, popup elements of menus( those without id’s ) don’t translate, even on startup. Everything else translates fine. Is there any specific way of reloading menus in MDI app?

PS. I have customization system implemented.

Technical Support Jul 12, 2008 - 10:33 AM

Both SDI and MDI customizable applications can switch language on-the-fly. Your language loading code should be exactly the same as it’s in the LanguageSwitcher sample application which is SDI. The only difference between it and your project is that your CMainFrame::ResetLocalizedResources()-like method (see LanguageSwitcher’s source code) should reload 3 menu lines used in your MDI project instead of one menu line used in SDI project. I.e. CExtCustomizeSite::MenuInfoAdd() and CExtCustomizeSite::MenuInfoLoadAccelTable() methods should be invoked 3 times.