Remove dynamic loading of SetThreadUILanguage.
SetThreadUILanguage is available since WinXP.
This commit is contained in:
@@ -473,12 +473,7 @@ bool wxLocale::Init(int language, int flags)
|
|||||||
// behavior, so avoid calling it there.
|
// behavior, so avoid calling it there.
|
||||||
if ( wxGetWinVersion() >= wxWinVersion_Vista )
|
if ( wxGetWinVersion() >= wxWinVersion_Vista )
|
||||||
{
|
{
|
||||||
wxLoadedDLL dllKernel32(wxS("kernel32.dll"));
|
::SetThreadUILanguage(LANGIDFROMLCID(lcid));
|
||||||
typedef LANGID(WINAPI *SetThreadUILanguage_t)(LANGID);
|
|
||||||
SetThreadUILanguage_t pfnSetThreadUILanguage = NULL;
|
|
||||||
wxDL_INIT_FUNC(pfn, SetThreadUILanguage, dllKernel32);
|
|
||||||
if (pfnSetThreadUILanguage)
|
|
||||||
pfnSetThreadUILanguage(LANGIDFROMLCID(lcid));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// and also call setlocale() to change locale used by the CRT
|
// and also call setlocale() to change locale used by the CRT
|
||||||
|
Reference in New Issue
Block a user