diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 05:46:09 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 05:46:09 +0000 |
commit | b0e15a2d768b04ad5a5bb1c591c6b043469baeb5 (patch) | |
tree | 380ae36ef460ec5e9fe17b9736d0aa3514f911af /plugins/TranslitSwitcher | |
parent | bc7df32e3b5a264c0eeb6a20b723cdab02cf7688 (diff) |
SendMessage(.... WM_SETTEXT...) -> SetWindowText(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11392 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TranslitSwitcher')
-rw-r--r-- | plugins/TranslitSwitcher/src/Layoutproc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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);
}
|