From 7e97bbad5f31058886766c569303a0da648cbe92 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 14 Dec 2014 03:59:41 +0000 Subject: SendDlgItemMessage(...., WM_SETTEXT...) -> SetDlgItemText(...) git-svn-id: http://svn.miranda-ng.org/main/trunk@11388 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ChangeKeyboardLayout/src/options.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/ChangeKeyboardLayout/src') 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()); -- cgit v1.2.3