Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <wx/wx.h>
- class MyApp: public wxApp
- {
- public:
- virtual bool OnInit();
- };
- wxIMPLEMENT_APP(MyApp);
- bool MyApp::OnInit()
- {
- wxFileDialog * dialog = new wxFileDialog(NULL, _("Title"), wxEmptyString, wxEmptyString, _("All Files (*.*)|*.*"), wxFD_OPEN|wxFD_FILE_MUST_EXIST);
- dialog->ShowModal();
- dialog->Destroy();
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment