X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f6638b82b01d7691b321dbcfb08765d559e4c59..09e48f0b1917db7e455f28c2c9ed661d39e9ab65:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index cc4ffb6e5e..29ba5231bd 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -28,6 +28,8 @@ #pragma hdrstop #endif +#if wxUSE_FILEDLG + #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/msgdlg.h" @@ -193,7 +195,7 @@ wxString wxFileSelectorEx(const wxChar *title, wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message, const wxString& defaultDir, const wxString& defaultFileName, const wxString& wildCard, - long style, const wxPoint& pos) + long style, const wxPoint& WXUNUSED(pos)) { m_message = message; m_dialogStyle = style; @@ -246,8 +248,6 @@ int wxFileDialog::ShowModal() OFN_EXPLORER | #endif // OFN_EXPLORER OFN_ALLOWMULTISELECT; - if ( !(m_dialogStyle & wxCHANGE_DIR) ) - msw_flags |= OFN_NOCHANGEDIR; OPENFILENAME of; wxZeroMemory(of); @@ -514,4 +514,5 @@ WXDLLEXPORT wxString wxSaveFileSelector(const wxChar *what, return wxDefaultFileSelector(FALSE, what, extension, default_name, parent); } +#endif // wxUSE_FILEDLG