]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/nativdlg/nativdlg.cpp
moved Destroy() to the beginning
[wxWidgets.git] / samples / nativdlg / nativdlg.cpp
index 82151d75c7ab8690f3e0cc3386e73d013f4d1c5d..6d16c488af55e3db7ae3beff7d5449a87d37b84b 100644 (file)
@@ -108,13 +108,6 @@ void MyFrame::OnTest1(wxCommandEvent& event)
       dialog->Close(TRUE);
 }
 
-bool MyFrame::OnClose(void)
-{
-  Show(FALSE);
-
-  return TRUE;
-}
-
 BEGIN_EVENT_TABLE(MyDialog, wxDialog)
        EVT_BUTTON(wxID_OK, MyDialog::OnOk)
        EVT_BUTTON(wxID_CANCEL, MyDialog::OnCancel)