X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ec6bd20af5fe4687964644b56fe10071da15e1..21b2dde583e83d3ad455c20fa8db717037b5f548:/samples/stc/edit.cpp diff --git a/samples/stc/edit.cpp b/samples/stc/edit.cpp index a921882b5d..24be6831a8 100644 --- a/samples/stc/edit.cpp +++ b/samples/stc/edit.cpp @@ -508,7 +508,7 @@ bool Edit::LoadFile () // get filname if (!m_filename) { wxFileDialog dlg (this, _T("Open file"), wxEmptyString, wxEmptyString, - _T("Any file (*)|*"), wxOPEN | wxFILE_MUST_EXIST | wxCHANGE_DIR); + _T("Any file (*)|*"), wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR); if (dlg.ShowModal() != wxID_OK) return false; m_filename = dlg.GetPath(); } @@ -557,7 +557,7 @@ bool Edit::SaveFile () // get filname if (!m_filename) { wxFileDialog dlg (this, _T("Save file"), wxEmptyString, wxEmptyString, _T("Any file (*)|*"), - wxSAVE | wxOVERWRITE_PROMPT); + wxFD_SAVE | wxFD_OVERWRITE_PROMPT); if (dlg.ShowModal() != wxID_OK) return false; m_filename = dlg.GetPath(); }