Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL iterators Pin
Maximilien28-Nov-02 5:00
Maximilien28-Nov-02 5:00 
GeneralRe: STL iterators Pin
Hans Ruck28-Nov-02 5:04
Hans Ruck28-Nov-02 5:04 
QuestionHow to get the HINSTANCE of a dll? Pin
Juergen28-Nov-02 3:45
Juergen28-Nov-02 3:45 
GeneralCButton derived class Pin
Anonymous28-Nov-02 3:44
Anonymous28-Nov-02 3:44 
Generalwinpopup Pin
viliam28-Nov-02 2:33
viliam28-Nov-02 2:33 
GeneralRe: winpopup Pin
Simon.W28-Nov-02 2:57
Simon.W28-Nov-02 2:57 
GeneralDid anyone use OOB data with winsocks configured SO_OOBLINE ? (Urgent!) Pin
KaЯl28-Nov-02 2:29
KaЯl28-Nov-02 2:29 
GeneralNon-english common controls. Pin
Patje28-Nov-02 2:27
Patje28-Nov-02 2:27 
Using common controls like e.g. the date-time picker enhances the look-and-feel of your application, but also seems to introduce an annoying language-problem.
Even if our application is running in e.g. German or Italian, the strings in the common control (and common dialogs) remain in English.
From the MSDN documentation I found that there is a function InitMUILanguage than you can use to change the language of common controls. I used it as follows:

// Set the language for the common controls
{
HMODULE CommonControlDll = LoadLibrary("comctl32.dll");
if (CommonControlDll)
   {
   void (*InitMUILanguageFunction)(LANGID uiLang) = (void (*)(LANGID))GetProcAddress(CommonControlDll, "InitMUILanguage");
   if (InitMUILanguageFunction) InitMUILanguageFunction (LANG_ITALIAN);
   //FreeLibrary (CommonControlDll);
   }
}

But apparently, it does not seem to work.
Notice that I had to dynamically load comctl32.dll and find the function in the DLL. Calling it directly in my application results in an unresolved external, hence this trick.

Does anybody use this function to set the language of common controls?
Does this only work on certain 'flavours' of Windows 2000 (won't probably work on NT4) ?

So far I found out that the language of the common controls only reacts on the language selected in the control panel (the locale), but not consistently. E.g. setting the language to Italian only translates the names of the months in Outlook, not the button 'Today'.

For the common dialogs (e.g. printer configuration) the situation seems to be even much worse. Setting the language to Italian only translates 'Properties' to 'Proprieta' and 'Cancel' to 'Annula', but all the rest is still in English.

What is the correct way to handle this ?


Enjoy life, this is not a rehearsal !!!
GeneralRe: Non-english common controls. Pin
Stephane Rodriguez.28-Nov-02 2:45
Stephane Rodriguez.28-Nov-02 2:45 
GeneralRe: Non-english common controls. Pin
Patje28-Nov-02 3:13
Patje28-Nov-02 3:13 
GeneralAutomation: VARIANT gets lost Pin
Rüpel28-Nov-02 1:28
Rüpel28-Nov-02 1:28 
GeneralRe: Automation: VARIANT gets lost Pin
Rüpel28-Nov-02 2:11
Rüpel28-Nov-02 2:11 
GeneralRe: Automation: VARIANT gets lost Pin
Rüpel28-Nov-02 22:00
Rüpel28-Nov-02 22:00 
QuestionDrawItem and changing device context? Pin
Kwikkiwak28-Nov-02 0:48
sussKwikkiwak28-Nov-02 0:48 
GeneralBrowser Control Pin
kishore102127-Nov-02 23:55
kishore102127-Nov-02 23:55 
GeneralRe: Browser Control Pin
Simon.W28-Nov-02 0:25
Simon.W28-Nov-02 0:25 
GeneralRe: Browser Control Pin
kishore102128-Nov-02 0:33
kishore102128-Nov-02 0:33 
GeneralRe: Browser Control Pin
Phil J Pearson28-Nov-02 0:38
Phil J Pearson28-Nov-02 0:38 
GeneralAsk about drawing red point in display window. Pin
ooosawaddee327-Nov-02 23:53
ooosawaddee327-Nov-02 23:53 
GeneralRe: Ask about drawing red point in display window. Pin
Christian Graus28-Nov-02 0:21
protectorChristian Graus28-Nov-02 0:21 
Generalinvisible mfc dialog based application Pin
r i s h a b h s27-Nov-02 23:36
r i s h a b h s27-Nov-02 23:36 
GeneralRe: invisible mfc dialog based application Pin
Michael P Butler28-Nov-02 0:28
Michael P Butler28-Nov-02 0:28 
GeneralRe: invisible mfc dialog based application Pin
r i s h a b h s28-Nov-02 1:11
r i s h a b h s28-Nov-02 1:11 
GeneralRe: invisible mfc dialog based application Pin
Ravi Bhavnani28-Nov-02 8:46
professionalRavi Bhavnani28-Nov-02 8:46 
GeneralMemory Intensive Computations Pin
Haakon S.27-Nov-02 22:52
Haakon S.27-Nov-02 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.