]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/splitter.h
add support for wxStrnlen for those platforms where it's available
[wxWidgets.git] / include / wx / generic / splitter.h
index 98a39231ca0e46b090739c446051fee5f853da5f..a86febee95d063acaa772119e3f5d8b2574263c9 100644 (file)
@@ -390,7 +390,7 @@ private:
 typedef void (wxEvtHandler::*wxSplitterEventFunction)(wxSplitterEvent&);
 
 #define wxSplitterEventHandler(func) \
-    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxSplitterEventFunction, &func)
+    wxEVENT_HANDLER_CAST(wxSplitterEventFunction, func)
 
 #define wx__DECLARE_SPLITTEREVT(evt, id, fn) \
     wx__DECLARE_EVT1(wxEVT_COMMAND_SPLITTER_ ## evt, id, wxSplitterEventHandler(fn))