From 24c1dab2cb5a68f34b34119d86f4d2d9c3d81f53 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 26 Dec 2014 15:36:57 +0000 Subject: [PATCH] [BUG_FIXED] (Author: Andreas Jonsson) Fix the bug that "Function parameters hint on input" checkbox in preferences dialog is not initialized correctly. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1318 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index d42f374f..3c628379 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -2402,7 +2402,8 @@ BOOL CALLBACK AutoCompletionDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM ::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_CHAR), FALSE); ::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_NOTE), FALSE); } - + ::SendDlgItemMessage(_hSelf, IDD_FUNC_CHECK, BM_SETCHECK, nppGUI._funcParams ? BST_CHECKED : BST_UNCHECKED, 0); + ::SendDlgItemMessage(_hSelf, IDD_AUTOCPARENTHESES_CHECK, BM_SETCHECK, nppGUI._matchedPairConf._doParentheses?BST_CHECKED:BST_UNCHECKED, 0); if (nppGUI._matchedPairConf._doParentheses) ::SendDlgItemMessage(_hSelf, IDD_AUTOCPARENTHESES_CHECK, WM_SETTEXT, 0, (LPARAM)TEXT(" ( )"));