git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12679
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+#ifndef OFN_EXPLORER
+ #define OFN_EXPLORER 0x00080000
+#endif
+
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
msw_flags |= OFN_HIDEREADONLY;
if ( m_dialogStyle & wxFILE_MUST_EXIST )
msw_flags |= OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
msw_flags |= OFN_HIDEREADONLY;
if ( m_dialogStyle & wxFILE_MUST_EXIST )
msw_flags |= OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
if (m_dialogStyle & wxMULTIPLE )
if (m_dialogStyle & wxMULTIPLE )
- msw_flags |=
-#if defined(OFN_EXPLORER)
- OFN_EXPLORER |
-#endif // OFN_EXPLORER
- OFN_ALLOWMULTISELECT;
+ {
+ // OFN_EXPLORER must always be specified with OFN_ALLOWMULTISELECT
+ msw_flags |= OFN_EXPLORER | OFN_ALLOWMULTISELECT;
+ }
+
+ // if wxCHANGE_DIR flag is not given we shouldn't change the CWD
+ if ( !(m_dialogStyle & wxCHANGE_DIR) )
+ {
+ msw_flags |= OFN_NOCHANGEDIR;
+ }
OPENFILENAME of;
wxZeroMemory(of);
OPENFILENAME of;
wxZeroMemory(of);