summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 05:46:09 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 05:46:09 +0000
commitb0e15a2d768b04ad5a5bb1c591c6b043469baeb5 (patch)
tree380ae36ef460ec5e9fe17b9736d0aa3514f911af /plugins/NotesAndReminders
parentbc7df32e3b5a264c0eeb6a20b723cdab02cf7688 (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/NotesAndReminders')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index 0cdca7e1aa..1f8ec9d354 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -1149,7 +1149,7 @@ static void SetNoteTextControl(STICKYNOTE *SN)
SendMessage(SN->REHwnd, EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&CF);
if (SN->data) // TODO: use EM_STREAMIN
- SendMessage(SN->REHwnd, WM_SETTEXT, 0, (LPARAM)(SN->data));
+ SetWindowText(SN->REHwnd, SN->data);
}
@@ -1569,7 +1569,7 @@ INT_PTR CALLBACK StickyNoteWndProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM l
}
// clear text first to force a reformatting w.r.t scrollbar
- SendMessage(H, WM_SETTEXT, 0, (LPARAM)"");
+ SetWindowText(H, "");
SendMessage(H, WM_SETFONT, (WPARAM)(SN->pCustomFont ? SN->pCustomFont->hFont : hBodyFont), FALSE);
SetNoteTextControl(SN);
RedrawWindow(SN->SNHwnd, NULL, NULL, RDW_INVALIDATE|RDW_FRAME|RDW_UPDATENOW);
@@ -1606,7 +1606,7 @@ INT_PTR CALLBACK StickyNoteWndProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM l
SN->pCustomFont = NULL;
// clear text first to force a reformatting w.r.t scrollbar
- SendMessage(H, WM_SETTEXT, 0, (LPARAM)"");
+ SetWindowText(H, "");
SendMessage(H, WM_SETFONT, (WPARAM)hBodyFont, FALSE);
SetNoteTextControl(SN);
RedrawWindow(SN->SNHwnd, NULL, NULL, RDW_INVALIDATE|RDW_FRAME|RDW_UPDATENOW);