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/MyDetails/src/services.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MyDetails') 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)); } -- cgit v1.2.3