]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/event/event.cpp
Native wxControl::DoGetBestSize() implementation
[wxWidgets.git] / samples / event / event.cpp
index a960f5dcc0869d949b3778181a29e600e87c2edc..4fd024abb8e42e23da0ff8390d619b967bf6f8ab 100644 (file)
@@ -60,7 +60,7 @@ DEFINE_EVENT_TYPE(wxEVT_MY_CUSTOM_COMMAND)
 #define EVT_MY_CUSTOM_COMMAND(id, fn) \
     DECLARE_EVENT_TABLE_ENTRY( \
         wxEVT_MY_CUSTOM_COMMAND, id, -1, \
-        (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
+        (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxCommandEventFunction, &fn ), \
         (wxObject *) NULL \
     ),