]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/resource/resource.cpp
fix for wxExecute(subprocess which produces a lot of output) bug
[wxWidgets.git] / samples / resource / resource.cpp
index 836cf563a4f43b27ee2acc74725bd54146245570..ab0405be9bfeb7b407b047b4685903ea08e44e9b 100644 (file)
@@ -113,8 +113,10 @@ bool MyApp::OnInit(void)
 
 MyApp::~MyApp()
 {
 
 MyApp::~MyApp()
 {
+#if defined(__WXMSW__)
     delete dialog1;
     delete menu1;
     delete dialog1;
     delete menu1;
+#endif
 }
 
 BEGIN_EVENT_TABLE(MyPanel, wxPanel)
 }
 
 BEGIN_EVENT_TABLE(MyPanel, wxPanel)
@@ -173,13 +175,6 @@ void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event) )
       dialog->Close(TRUE);
 }
 
       dialog->Close(TRUE);
 }
 
-bool MyFrame::OnClose(void)
-{
-  Show(FALSE);
-
-  return TRUE;
-}
-
 BEGIN_EVENT_TABLE(MyDialog, wxDialog)
   //   EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk)
        EVT_BUTTON(ID_BUTTON109, MyDialog::OnCancel)
 BEGIN_EVENT_TABLE(MyDialog, wxDialog)
   //   EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk)
        EVT_BUTTON(ID_BUTTON109, MyDialog::OnCancel)