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:
parent
6f00f73b56
commit
6a0b7653b0
|
@ -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];
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue