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/HistoryLinkListPlus/src/linklist_dlg.cpp | 46 ++++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'plugins/HistoryLinkListPlus/src') diff --git a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp index 3f0940157f..a163166dd6 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp @@ -369,8 +369,8 @@ INT_PTR CALLBACK SearchDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPara TranslateDialogDefault(hDlg); SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG_PTR)lParam); SetWindowText(hDlg, TXT_SEARCH); - SendDlgItemMessage(hDlg, IDC_DIR_ALL, BM_SETCHECK, BST_CHECKED, 0); - SendDlgItemMessage(hDlg, IDC_TYPE_ALL, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_DIR_ALL, BST_CHECKED); + CheckDlgButton(hDlg, IDC_TYPE_ALL, BST_CHECKED); return TRUE; break; case WM_COMMAND: { @@ -442,7 +442,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM l mCol = GetMirandaColour(&colourSet); if(mCol == 0) { - SendDlgItemMessage(hDlg, IDC_CHECK1, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK1, BST_CHECKED); EnableWindow(GetDlgItem(hDlg, IDC_INCOMING), FALSE); EnableWindow(GetDlgItem(hDlg, IDC_OUTGOING), FALSE); EnableWindow(GetDlgItem(hDlg, IDC_BACKGROUND), FALSE); @@ -463,7 +463,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM l if (useDefault == 0x00 ) { GetDBColour(&colourSet); - SendDlgItemMessage(hDlg, IDC_CHECK1, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK1, BST_UNCHECKED); SendDlgItemMessage(hDlg, IDC_INCOMING, CPM_SETCOLOUR, 0, colourSet.incoming); SendDlgItemMessage(hDlg, IDC_OUTGOING, CPM_SETCOLOUR, 0, colourSet.outgoing); SendDlgItemMessage(hDlg, IDC_BACKGROUND, CPM_SETCOLOUR, 0, colourSet.background); @@ -477,49 +477,49 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM l GetListOptions(&options); if(options.openNewWindow == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK2, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK2, BST_UNCHECKED); if(options.openNewWindow == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK2, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK2, BST_CHECKED); if(options.updateWindow == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK3, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK3, BST_UNCHECKED); if(options.updateWindow == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK3, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK3, BST_CHECKED); if(options.mouseEvent == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK4, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK4, BST_UNCHECKED); if(options.mouseEvent == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK4, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK4, BST_CHECKED); if(options.saveSpecial == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK5, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK5, BST_UNCHECKED); if(options.saveSpecial == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK5, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK5, BST_CHECKED); if(options.showDate == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK6, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK6, BST_UNCHECKED); if(options.showDate == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK6, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK6, BST_CHECKED); if(options.showLine == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK7, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK7, BST_UNCHECKED); if(options.showLine == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK7, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK7, BST_CHECKED); if(options.showTime == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK8, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK8, BST_UNCHECKED); if(options.showTime == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK8, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK8, BST_CHECKED); if(options.showDirection == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK9, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK9, BST_UNCHECKED); if(options.showDirection == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK9, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK9, BST_CHECKED); if(options.showType == 0x00) - SendDlgItemMessage(hDlg, IDC_CHECK10, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK10, BST_UNCHECKED); if(options.showType == 0x01) - SendDlgItemMessage(hDlg, IDC_CHECK10, BM_SETCHECK, BST_CHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK10, BST_CHECKED); // Write example window WriteOptionExample(hDlg, colourSet.incoming, colourSet.outgoing, colourSet.background, colourSet.text, &options); @@ -616,7 +616,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM l if(mCol == 1) { MessageBox(NULL, TXT_NOSETTING, TXT_ERROR, MB_OK | MB_ICONEXCLAMATION); - SendDlgItemMessage(hDlg, IDC_CHECK1, BM_SETCHECK, BST_UNCHECKED, 0); + CheckDlgButton(hDlg, IDC_CHECK1, BST_UNCHECKED); break; } else -- cgit v1.2.3