]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/resource/resource.cpp
compilation warning fixed
[wxWidgets.git] / samples / resource / resource.cpp
index 836cf563a4f43b27ee2acc74725bd54146245570..ab0405be9bfeb7b407b047b4685903ea08e44e9b 100644 (file)
@@ -113,8 +113,10 @@ bool MyApp::OnInit(void)
 
 MyApp::~MyApp()
 {
+#if defined(__WXMSW__)
     delete dialog1;
     delete menu1;
+#endif
 }
 
 BEGIN_EVENT_TABLE(MyPanel, wxPanel)
@@ -173,13 +175,6 @@ void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event) )
       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)