From bc7df32e3b5a264c0eeb6a20b723cdab02cf7688 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 14 Dec 2014 05:13:25 +0000 Subject: SetWindowText(GetDlgItem(...)) -> SetDlgItemText(...) git-svn-id: http://svn.miranda-ng.org/main/trunk@11391 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BuddyPounce/src/dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/BuddyPounce/src/dialog.cpp') diff --git a/plugins/BuddyPounce/src/dialog.cpp b/plugins/BuddyPounce/src/dialog.cpp index de7e487105..e9be19366a 100644 --- a/plugins/BuddyPounce/src/dialog.cpp +++ b/plugins/BuddyPounce/src/dialog.cpp @@ -614,13 +614,13 @@ void CreateMessageAcknowlegedWindow(MCONTACT hContact, int SentSuccess) TCHAR msg[256]; if (SentSuccess) { mir_sntprintf(msg, SIZEOF(msg), TranslateT("Message successfully sent to %s"), CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, GCDNF_TCHAR)); - SetWindowText(GetDlgItem(hwnd, IDOK), TranslateT("OK")); + SetDlgItemText(hwnd, IDOK, TranslateT("OK")); ShowWindow(GetDlgItem(hwnd, IDCANCEL), 0); } else { mir_sntprintf(msg, SIZEOF(msg), TranslateT("Message failed to send to %s"), CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, GCDNF_TCHAR)); - SetWindowText(GetDlgItem(hwnd, IDOK), TranslateT("Retry")); + SetDlgItemText(hwnd, IDOK, TranslateT("Retry")); } - SetWindowText(GetDlgItem(hwnd, LBL_CONTACT), msg); + SetDlgItemText(hwnd, LBL_CONTACT, msg); SetWindowText(hwnd, TranslateT(modFullname)); } -- cgit v1.2.3