X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44c4a3348693414bace13852e50d926c1aa9f08b..08a092f9f4de6c80a2d43d4072c379ac84e6cc2f:/samples/nativdlg/nativdlg.cpp?ds=sidebyside diff --git a/samples/nativdlg/nativdlg.cpp b/samples/nativdlg/nativdlg.cpp index 17b37c668d..6d16c488af 100644 --- a/samples/nativdlg/nativdlg.cpp +++ b/samples/nativdlg/nativdlg.cpp @@ -24,6 +24,10 @@ #include "wx/wx.h" #endif +#ifndef __WXMSW__ +#error Sorry, this sample is only appropriate under Windows. +#endif + #include "wx/resource.h" #include @@ -104,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)