From fe0465b11a317db5408d897484caedc3a5f10c47 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 14 Dec 2014 03:42:51 +0000 Subject: SendDlgItemMessage(...BM_SETCHECK ...) -> CheckDlgButton(...) SendDlgItemMessage(...BM_GETCHECK ...) -> IsDlgButtonChecked(...) constants fix for CheckDlgButton() git-svn-id: http://svn.miranda-ng.org/main/trunk@11387 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/findwindow.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/DbEditorPP/src/findwindow.cpp') diff --git a/plugins/DbEditorPP/src/findwindow.cpp b/plugins/DbEditorPP/src/findwindow.cpp index 1c4c46fbed..5866528233 100644 --- a/plugins/DbEditorPP/src/findwindow.cpp +++ b/plugins/DbEditorPP/src/findwindow.cpp @@ -58,10 +58,10 @@ INT_PTR CALLBACK FindWindowDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP case WM_INITDIALOG: TranslateDialogDefault(hwnd); SendDlgItemMessage(hwnd, IDC_SBAR, SB_SETTEXT, 0, (LPARAM)Translate("Enter a string to search the database for")); - CheckDlgButton(hwnd, IDC_MODNAME, 1); - CheckDlgButton(hwnd, IDC_SETTINGNAME, 1); - CheckDlgButton(hwnd, IDC_SETTINGVALUE, 1); - CheckDlgButton(hwnd, IDC_FOUND, 1); + CheckDlgButton(hwnd, IDC_MODNAME, BST_CHECKED); + CheckDlgButton(hwnd, IDC_SETTINGNAME, BST_CHECKED); + CheckDlgButton(hwnd, IDC_SETTINGVALUE, BST_CHECKED); + CheckDlgButton(hwnd, IDC_FOUND, BST_CHECKED); SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon(hInst, MAKEINTRESOURCE(ICO_REGEDIT))); SetWindowLongPtr(GetDlgItem(hwnd, IDC_REPLACE), GWLP_USERDATA, 0); SetWindowLongPtr(GetDlgItem(hwnd, IDC_SEARCH), GWLP_USERDATA, 0); @@ -83,12 +83,12 @@ INT_PTR CALLBACK FindWindowDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP if (GetWindowLongPtr(GetDlgItem(hwnd, IDC_REPLACE), GWLP_USERDATA) && !GetDlgItemText(hwnd, IDC_REPLACE, replace, SIZEOF(replace)) && - !IsDlgButtonChecked(hwnd, IDC_ENTIRELY)) + BST_UNCHECKED == IsDlgButtonChecked(hwnd, IDC_ENTIRELY)) break; - if (!IsDlgButtonChecked(hwnd, IDC_MODNAME) && - !IsDlgButtonChecked(hwnd, IDC_SETTINGNAME) && - !IsDlgButtonChecked(hwnd, IDC_SETTINGVALUE)) + if (BST_UNCHECKED == IsDlgButtonChecked(hwnd, IDC_MODNAME) && + BST_UNCHECKED == IsDlgButtonChecked(hwnd, IDC_SETTINGNAME) && + BST_UNCHECKED == IsDlgButtonChecked(hwnd, IDC_SETTINGVALUE)) break; FindInfo *fi = (FindInfo*)mir_calloc(sizeof(FindInfo)); -- cgit v1.2.3