summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 05:13:25 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 05:13:25 +0000
commitbc7df32e3b5a264c0eeb6a20b723cdab02cf7688 (patch)
tree1d5319a5cb712b9b56ad4834acc9a5198e6adb97 /plugins/DbEditorPP
parent0ff28f7c5ffaa46ed5b21bee965e66bb9108dfe2 (diff)
SetWindowText(GetDlgItem(...)) -> SetDlgItemText(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11391 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r--plugins/DbEditorPP/src/addeditsettingsdlg.cpp2
-rw-r--r--plugins/DbEditorPP/src/findwindow.cpp8
2 files changed, 5 insertions, 5 deletions
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);
}