X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d5b7a0be4977b291d37d582717d99d7afd24f33..6853365e97d65e7d8c15e523ac13b8600b1a78ad:/samples/resource/resource.cpp diff --git a/samples/resource/resource.cpp b/samples/resource/resource.cpp index 836cf563a4..ab0405be9b 100644 --- a/samples/resource/resource.cpp +++ b/samples/resource/resource.cpp @@ -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)