X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/939fba6c17da245488a77a3f58e983180fc5de91..3d640cfc403ebc5cd96c95f325057b709550c4d1:/src/common/appbase.cpp diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 51f2c8f1b6..a0d2dd9157 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -46,7 +46,7 @@ #endif //Win/Unix #if defined(__WXMSW__) - #include "wx/msw/private.h" // includes windows.h for MessageBox() + #include "wx/msw/wrapwin.h" // includes windows.h for MessageBox() #endif #if wxUSE_FONTMAP @@ -277,6 +277,19 @@ int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event)) return -1; } +#if wxUSE_EXCEPTIONS + +void +wxAppConsole::HandleEvent(wxEvtHandler *handler, + wxEventFunction func, + wxEvent& event) const +{ + // by default, simply call the handler + (handler->*func)(event); +} + +#endif // wxUSE_EXCEPTIONS + // ---------------------------------------------------------------------------- // cmd line parsing // ----------------------------------------------------------------------------