diff options
author | Sergey Tatarinov <tatarinov.sergey@gmail.com> | 2013-11-24 12:15:05 +0000 |
---|---|---|
committer | Sergey Tatarinov <tatarinov.sergey@gmail.com> | 2013-11-24 12:15:05 +0000 |
commit | e8ad4da76951c8b3d41c35f73406e368f0e33c4a (patch) | |
tree | c81eea40d5f41869e6ecddb85a2a003ccda05d95 /plugins | |
parent | b3ff3ae53a9f25490aab8c8327ba0eda80ab6f21 (diff) |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/BossKeyPlus/src/BossKey.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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);
}
}
|