Hi, 2 questions.
First on the Language Switcher sample, when I enable the Custom Language and select French (canada) - including resources of this sample, only the toolbars and dialogs that are called have switched to French. Shoudn’t IDD_DIALOG_CHILD_VIEW change too?
This leads to the second question. Here is the simplified version of what we have. A view that has buttonA and buttonB, when buttonA is pressed MenuA appears (IDR_MENU_A which we have in English and in Korean) and same idea for buttonB with MenuB (IDR_MENU_B). Let’s say we start the application in Korean and we click on buttonA, MenuA appears in Korean as it should. We purposely do NOT click on buttonB. Now we switch to English language (our process closes all opened views and reloads them). The view with the 2 buttons is reloaded in English. We then click on buttonA: MenuA stayed in Korean. We click on buttonB, MenuB appears in English correctly. In debug, it goes through the else as it should and loadMenuEx the English version of the menu but it displays Korean:
if (ForeignLang()) { g_ResourceManager->LoadMenuEx( l_oMenu, IDR_MENU_A, KOREAN_LANG_ID ); }
else { g_ResourceManager->LoadMenuEx( l_oMenu, IDR_MENU_A, ENGLISH_LANG_ID ); }
We implemented the following but we are missing something we cant put our finger on.
ResetLocalizedResources()
{
CExtCustomizeSite::MenuInfoRemove();
CExtCustomizeSite::CategoryRemoveAll();
//...
RecalcLayout();
CExtControlBar::stat_RecalcBarMetrics( this );
CExtControlBar::stat_RedrawFloatingFrames( this );
}
We dont understand why it is only the IDR_MENU’s that do not load correclty while the views, dialogs, buttons etc do. Something to specify too, our application uses several DLLs in which are our resources.
Thanks in advance