X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/449110cd746414d5f77db428babe20b84720c73a..8f2ee25db4652f96f28bc8f8370bebc974e533ff:/src/msw/wince/filedlgwce.cpp diff --git a/src/msw/wince/filedlgwce.cpp b/src/msw/wince/filedlgwce.cpp index 218f15e5dc..aa11f5f454 100644 --- a/src/msw/wince/filedlgwce.cpp +++ b/src/msw/wince/filedlgwce.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: src/msw/wince/filedlgwce.cpp -// Purpose: wxFileDialog for WinCE (SmartPhone) +// Purpose: wxFileDialog implementation for smart phones driven by WinCE // Author: Julian Smart // Modified by: // Created: 01/02/97 @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "filedlg.h" #endif @@ -31,7 +31,7 @@ // Only use this for MS SmartPhone. Use standard file dialog // for Pocket PC. -#if wxUSE_FILEDLG && wxUSE_SMARTPHONE +#if wxUSE_FILEDLG && defined(__SMARTPHONE__) && defined(__WXWINCE__) #ifndef WX_PRECOMP #include "wx/utils.h" @@ -116,7 +116,7 @@ int wxFileDialog::ShowModal() wxWindow* parentWindow = GetParent(); if (!parentWindow) parentWindow = wxTheApp->GetTopWindow(); - + wxString str = wxGetTextFromUser(m_message, _("File"), m_fileName, parentWindow); if (str) { @@ -130,5 +130,9 @@ int wxFileDialog::ShowModal() } } -#endif // wxUSE_FILEDLG +void wxFileDialog::GetFilenames(wxArrayString& files) const +{ + files = m_fileNames; +} +#endif // wxUSE_FILEDLG && __SMARTPHONE__ && __WXWINCE__