115inline bool wxModifyStyleEx(_In_ WXHWND hWnd, _In_ DWORD dwRemove, _In_ DWORD dwAdd, _In_ UINT nFlags = 0)
117 wxASSERT(IsWindow(hWnd));
119 const DWORD dwStyle = GetWindowLong(hWnd, GWL_EXSTYLE);
120 const DWORD dwNewStyle = (dwStyle & ~dwRemove) | dwAdd;
121 if(dwStyle == dwNewStyle)
124 SetWindowLong(hWnd, GWL_EXSTYLE, dwNewStyle);
126 SetWindowPos(hWnd, NULL, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | nFlags);
149 wxLanguage lang_code = wxLANGUAGE_DEFAULT;
151 if (wxConfigBase::Get()->Read(wxT(
"Language"), &lang)) {
152 const wxLanguageInfo *lang_info = wxLocale::FindLanguageInfo(lang);
153 lang_code = lang_info ? (wxLanguage)lang_info->Language : wxLANGUAGE_DEFAULT;
157 *language = lang_code;
159 if (wxLocale::IsAvailable(lang_code)) {
162 if (wxConfigBase::Get()->Read(wxT(
"LocalizationRepositoryPath"), &sPath))
163 locale.AddCatalogLookupPathPrefix(sPath);
164 return locale.Init(lang_code);
bool wxModifyStyleEx(WXHWND hWnd, DWORD dwRemove, DWORD dwAdd, UINT nFlags=0)
Modifies window extended style.
Definition common.h:115