X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ec6bd20af5fe4687964644b56fe10071da15e1..ae200bfcb537c475708959cb034be66eb0f5dcd4:/contrib/samples/stc/edit.cpp?ds=sidebyside diff --git a/contrib/samples/stc/edit.cpp b/contrib/samples/stc/edit.cpp index a921882b5d..24be6831a8 100644 --- a/contrib/samples/stc/edit.cpp +++ b/contrib/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(); }