From: Vadim Zeitlin Date: Tue, 22 Jun 2004 23:25:46 +0000 (+0000) Subject: don't pretend that type unsafe event table entry works, it doesn't any more (bug... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/19fe5fd1dc315f20c91d4ea79f3772e013308172 don't pretend that type unsafe event table entry works, it doesn't any more (bug 969012) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/event/event.cpp b/samples/event/event.cpp index ee1b87c5e7..8994d0a138 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -180,7 +180,8 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) EVT_MY_CUSTOM_COMMAND(wxID_ANY, MyFrame::OnProcessCustom) - // this would also work: + // the line below would also work if OnProcessCustom() were defined as + // taking a wxEvent (as required by EVT_CUSTOM) and not wxCommandEvent //EVT_CUSTOM(wxEVT_MY_CUSTOM_COMMAND, wxID_ANY, MyFrame::OnProcessCustom) END_EVENT_TABLE()