X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..8b6e6947fc8fb946391740d66b140413eccb6b6c:/samples/nativdlg/nativdlg.cpp diff --git a/samples/nativdlg/nativdlg.cpp b/samples/nativdlg/nativdlg.cpp index 32d24f893c..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 @@ -91,7 +95,7 @@ void MyFrame::OnQuit(wxCommandEvent& event) void MyFrame::OnTest1(wxCommandEvent& event) { MyDialog *dialog = new MyDialog; - if (dialog->LoadNativeDialog(this, dialog1)) + if (dialog->LoadNativeDialog(this, "dialog1")) { /* wxTextCtrl *text = (wxTextCtrl *)wxFindWindowByName("multitext3", dialog); @@ -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)