X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0f4301209cc58eb5562be289f49bf0fb9e7d6b8..4105cbfb059664fb51a8f5e4c76824971c5e9b65:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index b8d7c947e5..775affb082 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -28,7 +28,7 @@ #pragma hdrstop #endif -#if wxUSE_FILEDLG && !wxUSE_SMARTPHONE +#if wxUSE_FILEDLG && !defined(__SMARTPHONE__) #ifndef WX_PRECOMP #include "wx/utils.h" @@ -139,9 +139,14 @@ int wxFileDialog::ShowModal() *fileNameBuffer = wxT('\0'); *titleBuffer = wxT('\0'); +#if WXWIN_COMPATIBILITY_2_4 long msw_flags = 0; if ( (m_dialogStyle & wxHIDE_READONLY) || (m_dialogStyle & wxSAVE) ) msw_flags |= OFN_HIDEREADONLY; +#else + long msw_flags = OFN_HIDEREADONLY; +#endif + if ( m_dialogStyle & wxFILE_MUST_EXIST ) msw_flags |= OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;