Guest User

Untitled

a guest
Dec 22nd, 2012
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <wx/wx.h>
  2.  
  3. class MyApp: public wxApp
  4. {
  5. public:
  6.     virtual bool OnInit();
  7. };
  8.  
  9. wxIMPLEMENT_APP(MyApp);
  10.  
  11. bool MyApp::OnInit()
  12. {
  13.    wxFileDialog * dialog = new wxFileDialog(NULL, _("Title"), wxEmptyString, wxEmptyString, _("All Files (*.*)|*.*"), wxFD_OPEN|wxFD_FILE_MUST_EXIST);
  14.    dialog->ShowModal();
  15.    dialog->Destroy();
  16.    return false;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment