From 0fd29adc401279e1ef2f9cb3c6f2741f771730ca Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sun, 12 May 2013 22:57:01 +0000 Subject: [PATCH] [NEW_BEHAVIOUR] Make default button on Cancel for replace in files confirm dialog. (di Sardegna) git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1040 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 3cecc5305..86a0bc20b 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -798,7 +798,7 @@ BOOL CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP msg += TEXT("\rfor file type : "); msg += _options._filters[0]?_options._filters:TEXT("*.*"); - if (::MessageBox(_hParent, msg.c_str(), TEXT("Are you sure?"), MB_OKCANCEL) == IDOK) + if (::MessageBox(_hParent, msg.c_str(), TEXT("Are you sure?"), MB_OKCANCEL|MB_DEFBUTTON2) == IDOK) { bool isUnicode = (*_ppEditView)->getCurrentBuffer()->getUnicodeMode() != uni8Bit; HWND hFindCombo = ::GetDlgItem(_hSelf, IDFINDWHAT); @@ -2034,7 +2034,7 @@ void FindReplaceDlg::execSavedCommand(int cmd, int intValue, generic_string stri msg += TEXT("\rfor file type : "); msg += (_env->_filters[0])?_env->_filters:TEXT("*.*"); - if (::MessageBox(_hParent, msg.c_str(), TEXT("Are you sure?"), MB_OKCANCEL) == IDOK) + if (::MessageBox(_hParent, msg.c_str(), TEXT("Are you sure?"), MB_OKCANCEL|MB_DEFBUTTON2) == IDOK) { nppParamInst->_isFindReplacing = true; ::SendMessage(_hParent, WM_REPLACEINFILES, 0, 0);