X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41b8fe99b470616fb58690c27ae6f91e2060a371..561488efd4ab9cc0d78c3639fd13759d7dbcbb83:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index 7e59525d7b..abf12be798 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -28,7 +28,7 @@ #pragma hdrstop #endif -#if wxUSE_FILEDLG && !defined(__SMARTPHONE__) +#if wxUSE_FILEDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__)) #ifndef WX_PRECOMP #include "wx/utils.h" @@ -40,18 +40,14 @@ #include "wx/app.h" #endif -#include "wx/msw/private.h" +#include "wx/msw/wrapcdlg.h" -#if !defined(__WIN32__) || defined(__WXWINCE__) - #include -#endif - -#include #include #include #include "wx/filename.h" #include "wx/tokenzr.h" +#include "wx/math.h" #include "wx/msw/missing.h" @@ -299,8 +295,8 @@ int wxFileDialog::ShowModal() // forward slashes) and also squeeze multiple consecutive slashes into one // as it doesn't like two backslashes in a row neither - wxString dir; - size_t i, len = m_dir.length(); + wxString dir; + size_t i, len = m_dir.length(); dir.reserve(len); for ( i = 0; i < len; i++ ) { @@ -395,8 +391,6 @@ int wxFileDialog::ShowModal() } } - //== Execute FileDialog >>================================================= - //== Execute FileDialog >>================================================= bool success = (m_dialogStyle & wxSAVE ? GetSaveFileName(&of) @@ -511,5 +505,5 @@ int wxFileDialog::ShowModal() } -#endif // wxUSE_FILEDLG +#endif // wxUSE_FILEDLG && !(__SMARTPHONE__ && __WXWINCE__)