diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 03:59:41 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 03:59:41 +0000 |
commit | 7e97bbad5f31058886766c569303a0da648cbe92 (patch) | |
tree | a1738907125dd0cf9f384306de6101e4f3f3f951 /plugins/ChangeKeyboardLayout/src/options.cpp | |
parent | fe0465b11a317db5408d897484caedc3a5f10c47 (diff) |
SendDlgItemMessage(...., WM_SETTEXT...) -> SetDlgItemText(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11388 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ChangeKeyboardLayout/src/options.cpp')
-rw-r--r-- | plugins/ChangeKeyboardLayout/src/options.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ChangeKeyboardLayout/src/options.cpp b/plugins/ChangeKeyboardLayout/src/options.cpp index 4ecad65182..4406b93e63 100644 --- a/plugins/ChangeKeyboardLayout/src/options.cpp +++ b/plugins/ChangeKeyboardLayout/src/options.cpp @@ -63,9 +63,9 @@ INT_PTR CALLBACK DlgMainProcOptions(HWND hWnd, UINT uiMessage, WPARAM wParam, LP // Отображаем пример конфиг.строки
ptszMemLay = ptszLayStrings[0];
- SendDlgItemMessage(hWnd, IDC_EDIT_EXAMPLE, WM_SETTEXT, 0, (LPARAM)ptszMemLay);
+ SetDlgItemText(hWnd, IDC_EDIT_EXAMPLE, ptszMemLay);
ptszShortNameLay = GetShortNameOfLayout(hklLayouts[0]);
- SendDlgItemMessage(hWnd, IDC_STATIC_EXAMPLE, WM_SETTEXT, 0, (LPARAM)ptszShortNameLay);
+ SetDlgItemText(hWnd, IDC_STATIC_EXAMPLE, ptszShortNameLay);
mir_free(ptszShortNameLay);
// Заполняем комбобокс с текущими раскладками
@@ -77,7 +77,7 @@ INT_PTR CALLBACK DlgMainProcOptions(HWND hWnd, UINT uiMessage, WPARAM wParam, LP //Отображаем первую раскладку в списке
SendDlgItemMessage(hWnd, IDC_COMBO_LANG, CB_SETCURSEL, 0, 0);
ptszMemLay = ptszLayStrings[0];
- SendDlgItemMessage(hWnd, IDC_EDIT_SET, WM_SETTEXT, 0, (LPARAM)ptszMemLay);
+ SetDlgItemText(hWnd, IDC_EDIT_SET, ptszMemLay);
if (bLayNum != 2) EnableWindow(GetDlgItem(hWnd, IDC_CHECK_TWOWAY), FALSE);
MainDialogLock = FALSE;
@@ -123,7 +123,7 @@ INT_PTR CALLBACK DlgMainProcOptions(HWND hWnd, UINT uiMessage, WPARAM wParam, LP if ((HIWORD(wParam) == CBN_SELCHANGE)) {
MainDialogLock = TRUE;
ptszMemLay = ptszLayStrings[SendDlgItemMessage(hWnd, IDC_COMBO_LANG, CB_GETCURSEL, 0, 0)];
- SendDlgItemMessage(hWnd, IDC_EDIT_SET, WM_SETTEXT, 0, (LPARAM)ptszMemLay);
+ SetDlgItemText(hWnd, IDC_EDIT_SET, ptszMemLay);
MainDialogLock = FALSE;
}
break;
@@ -136,7 +136,7 @@ INT_PTR CALLBACK DlgMainProcOptions(HWND hWnd, UINT uiMessage, WPARAM wParam, LP case IDC_BUTTON_DEFAULT:
if ((HIWORD(wParam) == BN_CLICKED )) {
ptszGenLay = GenerateLayoutString(hklLayouts[SendDlgItemMessage(hWnd, IDC_COMBO_LANG, CB_GETCURSEL, 0, 0)]);
- SendDlgItemMessage(hWnd, IDC_EDIT_SET, WM_SETTEXT, 0, (LPARAM)ptszGenLay);
+ SetDlgItemText(hWnd, IDC_EDIT_SET, ptszGenLay);
mir_free(ptszGenLay);
SendMessage(GetParent(hWnd), PSM_CHANGED, 0, 0);
}
@@ -221,7 +221,7 @@ INT_PTR CALLBACK DlgMainProcOptions(HWND hWnd, UINT uiMessage, WPARAM wParam, LP mir_free(ptszFormLay);
ptszMemLay = ptszLayStrings[0];
- SendDlgItemMessage(hWnd, IDC_EDIT_EXAMPLE, WM_SETTEXT, 0, (LPARAM)ptszMemLay);
+ SetDlgItemText(hWnd, IDC_EDIT_EXAMPLE, ptszMemLay);
UnhookWindowsHookEx(kbHook_All);
kbHook_All = SetWindowsHookEx(WH_KEYBOARD, (HOOKPROC)Keyboard_Hook, NULL, GetCurrentThreadId());
|