X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5e5bd660712f91193b9363c24283c7c74ca8bba..16193c2b68e0a45d4aa22a923e9ff2b708e4b80c:/samples/mfc/mfctest.cpp diff --git a/samples/mfc/mfctest.cpp b/samples/mfc/mfctest.cpp index 740bfbbbc1..91ed30dbdc 100644 --- a/samples/mfc/mfctest.cpp +++ b/samples/mfc/mfctest.cpp @@ -44,6 +44,10 @@ #include "wx/wx.h" +#ifdef _WINDOWS_ +#error Sorry, you need to edit include/wx/wxprec.h, comment out the windows.h inclusion, and recompile. +#endif + #ifdef new #undef new #endif @@ -89,7 +93,6 @@ class MyChild: public wxFrame MyCanvas *canvas; MyChild(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size, const long style); ~MyChild(void); - bool OnClose(void); void OnQuit(wxCommandEvent& event); void OnNew(wxCommandEvent& event); @@ -372,12 +375,6 @@ void MyChild::OnActivate(wxActivateEvent& event) canvas->SetFocus(); } -bool MyChild::OnClose(void) -{ - return TRUE; -} - - // Dummy MFC window for specifying a valid main window to MFC, using // a wxWindows HWND. CDummyWindow::CDummyWindow(HWND hWnd):CWnd()