From b0e15a2d768b04ad5a5bb1c591c6b043469baeb5 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 14 Dec 2014 05:46:09 +0000 Subject: SendMessage(.... WM_SETTEXT...) -> SetWindowText(...) git-svn-id: http://svn.miranda-ng.org/main/trunk@11392 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TranslitSwitcher/src/Layoutproc.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/TranslitSwitcher') diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp index 835b1c8063..0fd8c18a3d 100644 --- a/plugins/TranslitSwitcher/src/Layoutproc.cpp +++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp @@ -495,7 +495,7 @@ void SwitchLayout(bool lastword) if (somethingIsSelected) SendMessage(hwnd2, EM_REPLACESEL, false, (LPARAM)sel); else - SendMessage(hwnd2, WM_SETTEXT, 0, (LPARAM)sel); + SetWindowText(hwnd2, sel); SendMessage(hwnd2, EM_SETSEL, (WPARAM)dwStart, (LPARAM)dwEnd); } @@ -560,7 +560,7 @@ void TranslitLayout(bool lastword) _tcsncat(NewText, sel, start); _tcscat(NewText, boo); _tcsncat(NewText, sel + end, slen - end); - SendMessage(hwnd2, WM_SETTEXT, 0, (LPARAM)NewText); + SetWindowText(hwnd2, NewText); mir_free(NewText); } @@ -628,7 +628,7 @@ void InvertCase(bool lastword) _tcsncat(NewText, sel, start); _tcscat(NewText, boo); _tcsncat(NewText, sel + end, slen - end); - SendMessage(hwnd2, WM_SETTEXT, 0, (LPARAM)NewText); + SetWindowText(hwnd2, NewText); mir_free(NewText); } @@ -707,18 +707,18 @@ int OnButtonPressed(WPARAM, LPARAM lParam) ptrT tszSymbol(db_get_tsa(NULL, "TranslitSwitcher", "ResendSymbol")); if (tszSymbol == NULL) { - SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM)sel); + SetWindowText(hEdit, sel); SendMessage(hEdit, EM_SETSEL, 0, (LPARAM)slen); SendMessage(cbcd->hwndFrom, WM_COMMAND, IDOK, 0); } else if (_tcsncmp(sel, tszSymbol, _tcslen(tszSymbol)) == 0) { - SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM)sel); + SetWindowText(hEdit, sel); SendMessage(hEdit, EM_SETSEL, 0, (LPARAM)slen); SendMessage(cbcd->hwndFrom, WM_COMMAND, IDOK, 0); } else { CMString tszFinal(FORMAT, _T("%s %s"), tszSymbol, sel); - SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM)tszFinal.GetString()); + SetWindowText(hEdit, tszFinal.GetString()); SendMessage(hEdit, EM_SETSEL, 0, tszFinal.GetLength()); SendMessage(cbcd->hwndFrom, WM_COMMAND, IDOK, 0); } -- cgit v1.2.3