]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
wxToggleButton on wxMac has these methods now
[wxWidgets.git] / src / common / appbase.cpp
index 51f2c8f1b6685d6ba2b37fd8a538b3e6a8903433..a0d2dd9157fbff0cf04af1c9b52d9a3a33363c11 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------