summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 04:23:01 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 04:23:01 +0000
commit850259c4eab1a77d973af51cd3bd62fbbd09f591 (patch)
tree7c3cf2435324cef4517210217689540e15fe8419 /plugins/NotesAndReminders
parent7e97bbad5f31058886766c569303a0da648cbe92 (diff)
SendMessage(... WM_GETTEXT ...) -> GetWindowText(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NotesAndReminders')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp4
-rw-r--r--plugins/NotesAndReminders/src/options.cpp10
-rw-r--r--plugins/NotesAndReminders/src/reminders.cpp10
3 files changed, 12 insertions, 12 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index f73cb4a51e..0cdca7e1aa 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -853,9 +853,9 @@ static void JustSaveNotesEx(STICKYNOTE *pModified)
if (SzT) // TODO: change to support unicode and rtf, use EM_STREAMOUT
{
if (SzT > MAX_NOTE_LEN) SzT = MAX_NOTE_LEN; // we want to be far below the 64k limit
- tData = (char*)malloc(SzT+1);
+ tData = (char*)malloc(SzT + 1);
if (tData)
- SendMessage(pNote->REHwnd, WM_GETTEXT, SzT+1, (LPARAM)tData);
+ GetWindowText(pNote->REHwnd, tData, SzT + 1);
}
if (pNote == pModified)
diff --git a/plugins/NotesAndReminders/src/options.cpp b/plugins/NotesAndReminders/src/options.cpp
index 0fd7503e6c..1a5adc0dc1 100644
--- a/plugins/NotesAndReminders/src/options.cpp
+++ b/plugins/NotesAndReminders/src/options.cpp
@@ -410,8 +410,8 @@ INT_PTR CALLBACK DlgProcOptions(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPar
SzT = (WORD)SendDlgItemMessage(hdlg,IDC_EDIT_EMAILSMS,WM_GETTEXTLENGTH,0,0);
if (SzT != 0)
{
- g_RemindSMS = (char*)realloc(g_RemindSMS,SzT+1);
- SendDlgItemMessage(hdlg,IDC_EDIT_EMAILSMS ,WM_GETTEXT,SzT+1,(LPARAM)g_RemindSMS);
+ g_RemindSMS = (char*)realloc(g_RemindSMS, SzT + 1);
+ GetDlgItemText(hdlg, IDC_EDIT_EMAILSMS, g_RemindSMS, SzT + 1);
}
P = g_RemindSMS;
db_set_blob(0,MODULENAME,"RemindEmail",P,SzT);
@@ -419,8 +419,8 @@ INT_PTR CALLBACK DlgProcOptions(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPar
SzT = (WORD)SendDlgItemMessage(hdlg,IDC_EDIT_ALTBROWSER,WM_GETTEXTLENGTH,0,0);
if (SzT != 0)
{
- g_lpszAltBrowser = (TCHAR*)mir_realloc(g_lpszAltBrowser,SzT+1);
- SendDlgItemMessage(hdlg,IDC_EDIT_ALTBROWSER,WM_GETTEXT,SzT+1,(LPARAM)g_lpszAltBrowser);
+ g_lpszAltBrowser = (TCHAR*)mir_realloc(g_lpszAltBrowser, SzT + 1);
+ GetDlgItemText(hdlg, IDC_EDIT_ALTBROWSER, g_lpszAltBrowser, SzT + 1);
TrimString(g_lpszAltBrowser);
if (!*g_lpszAltBrowser)
{
@@ -476,7 +476,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hdlg,UINT message,WPARAM wParam,LPARAM lPar
ofn.lpstrInitialDir = _T(".");
ofn.Flags = OFN_FILEMUSTEXIST | OFN_LONGNAMES | OFN_ENABLESIZING | OFN_DONTADDTORECENT;
- SendDlgItemMessage(hdlg,IDC_EDIT_ALTBROWSER,WM_GETTEXT,(WPARAM)ofn.nMaxFile,(LPARAM)s);
+ GetDlgItemText(hdlg, IDC_EDIT_ALTBROWSER, s, ofn.nMaxFile);
if ( GetOpenFileName(&ofn) )
{
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp
index 49d767ab1a..5b9fd20897 100644
--- a/plugins/NotesAndReminders/src/reminders.cpp
+++ b/plugins/NotesAndReminders/src/reminders.cpp
@@ -1829,8 +1829,8 @@ INT_PTR CALLBACK DlgProcNotifyReminder(HWND Dialog,UINT Message,WPARAM wParam,LP
if (SzT)
{
if (SzT > MAX_REMINDER_LEN) SzT = MAX_REMINDER_LEN;
- ReminderText = (char*)malloc(SzT+1);
- SendDlgItemMessage(Dialog, IDC_REMDATA, WM_GETTEXT, SzT+1, (LPARAM)ReminderText);
+ ReminderText = (char*)malloc(SzT + 1);
+ GetDlgItemText(Dialog, IDC_REMDATA, ReminderText, SzT + 1);
}
if (pReminder->Reminder)
free(pReminder->Reminder);
@@ -1867,7 +1867,7 @@ INT_PTR CALLBACK DlgProcNotifyReminder(HWND Dialog,UINT Message,WPARAM wParam,LP
{
if (SzT > MAX_REMINDER_LEN) SzT = MAX_REMINDER_LEN;
ReminderText = (char*)malloc(SzT+1);
- SendDlgItemMessage(Dialog, IDC_REMDATA, WM_GETTEXT, SzT+1, (LPARAM)ReminderText);
+ GetDlgItemText(Dialog, IDC_REMDATA, ReminderText, SzT + 1);
}
SetFocus(NewNote(0, 0, -1, -1, ReminderText, 0, TRUE, TRUE, 0)->REHwnd);
@@ -2164,8 +2164,8 @@ INT_PTR CALLBACK DlgProcNewReminder(HWND Dialog,UINT Message,WPARAM wParam,LPARA
if (SzT)
{
if (SzT > MAX_REMINDER_LEN) SzT = MAX_REMINDER_LEN;
- ReminderText = (char*)malloc(SzT+1);
- SendDlgItemMessage(Dialog,IDC_REMINDER,WM_GETTEXT,SzT+1,(LPARAM)ReminderText);
+ ReminderText = (char*)malloc(SzT + 1);
+ GetDlgItemText(Dialog, IDC_REMINDER, ReminderText, SzT + 1);
}
if (NewReminderVisible != 2)