From e8ad4da76951c8b3d41c35f73406e368f0e33c4a Mon Sep 17 00:00:00 2001 From: Sergey Tatarinov Date: Sun, 24 Nov 2013 12:15:05 +0000 Subject: BossKey: - Fixed a broken layout indicator - The password window without icon in the title now git-svn-id: http://svn.miranda-ng.org/main/trunk@6972 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BossKeyPlus/src/BossKey.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/BossKeyPlus/src/BossKey.cpp') diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index dd20160964..100cc2df66 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -101,7 +101,7 @@ INT_PTR CALLBACK DlgStdInProc(HWND hDlg, UINT uMsg,WPARAM wParam,LPARAM lParam) if (IsAeroMode()) { SetWindowLongPtr(hDlg, GWL_STYLE, GetWindowLongPtr(hDlg, GWL_STYLE) | WS_DLGFRAME | WS_SYSMENU); - + SetWindowLongPtr(hDlg, GWL_EXSTYLE, GetWindowLongPtr(hDlg, GWL_EXSTYLE) | WS_EX_TOOLWINDOW); RECT rect; GetClientRect(hDlg, &rect); SetWindowPos(hDlg, 0, 0, 0, rect.right, rect.bottom + GetSystemMetrics(SM_CYCAPTION) + GetSystemMetrics(SM_CXSIZEFRAME), SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOZORDER); @@ -179,12 +179,12 @@ static void LanguageChanged(HWND hDlg) HKL LangID = GetKeyboardLayout(0); if (LangID != oldLangID) { - TCHAR Lang[3] = {0}; + char Lang[3] = {0}; oldLangID = LangID; - GetLocaleInfo(MAKELCID(((WORD)LangID & 0xffffffff), SORT_DEFAULT), LOCALE_SABBREVLANGNAME, Lang, 2); + GetLocaleInfoA(MAKELCID(((WORD)LangID & 0xffffffff), SORT_DEFAULT), LOCALE_SABBREVLANGNAME, Lang, 2); Lang[0] = toupper(Lang[0]); Lang[1] = tolower(Lang[1]); - SetDlgItemText(hDlg, IDC_LANG, Lang); + SetDlgItemTextA(hDlg, IDC_LANG, Lang); } } -- cgit v1.2.3