wxFileDialog changed to use (new) wxCHANGE_DIR flag, docs updated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -246,6 +246,8 @@ int wxFileDialog::ShowModal()
|
||||
OFN_EXPLORER |
|
||||
#endif // OFN_EXPLORER
|
||||
OFN_ALLOWMULTISELECT;
|
||||
if ( !(m_dialogStyle & wxCHANGE_DIR) )
|
||||
msw_flags |= OFN_NOCHANGEDIR;
|
||||
|
||||
OPENFILENAME of;
|
||||
wxZeroMemory(of);
|
||||
@@ -329,8 +331,8 @@ int wxFileDialog::ShowModal()
|
||||
|
||||
//== Execute FileDialog >>=================================================
|
||||
|
||||
bool success = (m_dialogStyle & wxSAVE) ? (GetSaveFileName(&of) != 0)
|
||||
: (GetOpenFileName(&of) != 0);
|
||||
bool success = (m_dialogStyle & wxSAVE ? GetSaveFileName(&of)
|
||||
: GetOpenFileName(&of)) != 0;
|
||||
|
||||
DWORD errCode = CommDlgExtendedError();
|
||||
|
||||
|
Reference in New Issue
Block a user