mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 06:14:47 +02:00
[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
This commit is contained in:
parent
36b9b7cc8c
commit
0fd29adc40
@ -798,7 +798,7 @@ BOOL CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP
|
|||||||
msg += TEXT("\rfor file type : ");
|
msg += TEXT("\rfor file type : ");
|
||||||
msg += _options._filters[0]?_options._filters:TEXT("*.*");
|
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;
|
bool isUnicode = (*_ppEditView)->getCurrentBuffer()->getUnicodeMode() != uni8Bit;
|
||||||
HWND hFindCombo = ::GetDlgItem(_hSelf, IDFINDWHAT);
|
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 += TEXT("\rfor file type : ");
|
||||||
msg += (_env->_filters[0])?_env->_filters:TEXT("*.*");
|
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;
|
nppParamInst->_isFindReplacing = true;
|
||||||
::SendMessage(_hParent, WM_REPLACEINFILES, 0, 0);
|
::SendMessage(_hParent, WM_REPLACEINFILES, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user