summaryrefslogtreecommitdiff
path: root/plugins/MyDetails
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/MyDetails
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/MyDetails')
-rw-r--r--plugins/MyDetails/src/services.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MyDetails/src/services.cpp b/plugins/MyDetails/src/services.cpp
index a8ea0b9e70..c5a1798889 100644
--- a/plugins/MyDetails/src/services.cpp
+++ b/plugins/MyDetails/src/services.cpp
@@ -72,7 +72,7 @@ static INT_PTR CALLBACK DlgProcSetNickname(HWND hwndDlg, UINT msg, WPARAM wParam
TCHAR tmp[128];
mir_sntprintf(tmp, SIZEOF(tmp), TranslateT("Set my nickname for %s"), proto->description);
- SendMessage(hwndDlg, WM_SETTEXT, 0, (LPARAM)tmp);
+ SetWindowText(hwndDlg, tmp);
HICON hIcon = (HICON)CallProtoService(proto->name, PS_LOADICON, PLI_PROTOCOL, 0);
if (hIcon != NULL) {
@@ -341,7 +341,7 @@ static INT_PTR CALLBACK DlgProcSetStatusMessage(HWND hwndDlg, UINT msg, WPARAM w
TCHAR title[256];
mir_sntprintf(title, SIZEOF(title), TranslateT("Set my status message for %s"), proto->description);
- SendMessage(hwndDlg, WM_SETTEXT, 0, (LPARAM)title);
+ SetWindowText(hwndDlg, title);
SetDlgItemText(hwndDlg, IDC_STATUSMESSAGE, proto->GetStatusMsg());
}
@@ -351,7 +351,7 @@ static INT_PTR CALLBACK DlgProcSetStatusMessage(HWND hwndDlg, UINT msg, WPARAM w
TCHAR title[256];
mir_sntprintf(title, SIZEOF(title), TranslateT("Set my status message for %s"),
CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, data->status, GSMDF_TCHAR));
- SendMessage(hwndDlg, WM_SETTEXT, 0, (LPARAM)title);
+ SetWindowText(hwndDlg, title);
SetDlgItemText(hwndDlg, IDC_STATUSMESSAGE, protocols->GetDefaultStatusMsg(data->status));
}