#pragma hdrstop
#endif
-#if wxUSE_FILEDLG && !defined(__SMARTPHONE__)
+#if wxUSE_FILEDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/app.h"
#endif
-#include "wx/msw/private.h"
+#include "wx/msw/wrapcdlg.h"
-#if !defined(__WIN32__) || defined(__WXWINCE__)
- #include <commdlg.h>
-#endif
-
-#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "wx/filename.h"
#include "wx/tokenzr.h"
+#include "wx/math.h"
-#ifndef OFN_EXPLORER
- #define OFN_EXPLORER 0x00080000
-#endif
+#include "wx/msw/missing.h"
// ----------------------------------------------------------------------------
// constants
programmer needs the PLACES BAR (left side of dlg) they
just shouldn't move or center the dlg.
*/
- if (m_bMovedWindow) // we need the these flags.
- msw_flags |= OFN_EXPLORER|OFN_ENABLEHOOK|OFN_ENABLESIZING;
+ if (m_bMovedWindow) // we need these flags.
+ {
+ msw_flags |= OFN_EXPLORER|OFN_ENABLEHOOK;
+#ifndef __WXWINCE__
+ msw_flags |= OFN_ENABLESIZING;
+#endif
+ }
if (m_dialogStyle & wxMULTIPLE )
{
// 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++ )
{
}
}
- //== Execute FileDialog >>=================================================
-
//== Execute FileDialog >>=================================================
bool success = (m_dialogStyle & wxSAVE ? GetSaveFileName(&of)
}
-#endif // wxUSE_FILEDLG
+#endif // wxUSE_FILEDLG && !(__SMARTPHONE__ && __WXWINCE__)