Improve Folder Browse And Save Dialog

Enable the new user interface for "Folder Browse Dialog" including the
edit box and enable Vista style for "Save Dialog".

Closes #2631
This commit is contained in:
Motaz Alnuweiri 2016-12-01 00:35:54 +02:00 committed by Don Ho
parent 6f00f73b56
commit 6a0b7653b0
2 changed files with 6 additions and 1 deletions

View File

@ -180,7 +180,7 @@ generic_string folderBrowser(HWND parent, const generic_string & title, int outp
TCHAR szDisplayName[MAX_PATH];
info.pszDisplayName = szDisplayName;
info.lpszTitle = title.c_str();
info.ulFlags = 0;
info.ulFlags = BIF_USENEWUI | BIF_NONEWFOLDERBUTTON;
info.lpfn = BrowseCallbackProc;
TCHAR directory[MAX_PATH];

View File

@ -174,6 +174,11 @@ Notepad_plus::Notepad_plus()
is_admin = false;
_isAdministrator = is_admin ? true : false;
// Enable new style save dialog.
if (ver >= WV_VISTA) {
(NppParameters::getInstance())->setUseNewStyleSaveDlg(true);
}
}
Notepad_plus::~Notepad_plus()