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/DbEditorPP/src/addeditsettingsdlg.cpp | 2 +- plugins/DbEditorPP/src/findwindow.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/DbEditorPP') diff --git a/plugins/DbEditorPP/src/addeditsettingsdlg.cpp b/plugins/DbEditorPP/src/addeditsettingsdlg.cpp index 53c6d1b9f9..15e880e93a 100644 --- a/plugins/DbEditorPP/src/addeditsettingsdlg.cpp +++ b/plugins/DbEditorPP/src/addeditsettingsdlg.cpp @@ -294,7 +294,7 @@ INT_PTR CALLBACK EditSettingDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l sscanf(setting, "%d", &tmp); mir_snprintf(temp, SIZEOF(temp), "%X", tmp); } - SetWindowText(GetDlgItem(hwnd, IDC_SETTINGVALUE), temp); + SetDlgItemText(hwnd, IDC_SETTINGVALUE, temp); } } } diff --git a/plugins/DbEditorPP/src/findwindow.cpp b/plugins/DbEditorPP/src/findwindow.cpp index 5866528233..9cb1ae78aa 100644 --- a/plugins/DbEditorPP/src/findwindow.cpp +++ b/plugins/DbEditorPP/src/findwindow.cpp @@ -117,14 +117,14 @@ INT_PTR CALLBACK FindWindowDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP fi->replace = mir_tstrdup(replace); - SetWindowText(GetDlgItem(hwnd, IDOK), Translate("Stop")); + SetDlgItemText(hwnd, IDOK, Translate("Stop")); EnableWindow(GetDlgItem(hwnd, IDC_SEARCH), 0); if (IsDlgButtonChecked(hwnd, IDC_CASESENSITIVE)) fi->mode |= RW_CASE; } else { - SetWindowText(GetDlgItem(hwnd, IDC_SEARCH), Translate("Stop")); + SetDlgItemText(hwnd, IDC_SEARCH, Translate("Stop")); EnableWindow(GetDlgItem(hwnd, IDOK), 0); } @@ -625,10 +625,10 @@ void __cdecl FindSettings(LPVOID di) if (GetWindowLongPtr(GetDlgItem(prnthwnd, IDC_REPLACE), GWLP_USERDATA)) { SetWindowLongPtr(GetDlgItem(prnthwnd, IDC_REPLACE), GWLP_USERDATA, 0); EnableWindow(GetDlgItem(prnthwnd, IDC_SEARCH), 1); - SetWindowText(GetDlgItem(prnthwnd, IDOK), Translate("&Replace")); + SetDlgItemText(prnthwnd, IDOK, Translate("&Replace")); } else { - SetWindowText(GetDlgItem(prnthwnd, IDC_SEARCH), Translate("&Search")); + SetDlgItemText(prnthwnd, IDC_SEARCH, Translate("&Search")); EnableWindow(GetDlgItem(prnthwnd, IDOK), 1); } -- cgit v1.2.3