]> git.saurik.com Git - wxWidgets.git/commitdiff
don't pretend that type unsafe event table entry works, it doesn't any more (bug...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Jun 2004 23:25:46 +0000 (23:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Jun 2004 23:25:46 +0000 (23:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/event/event.cpp

index ee1b87c5e77dd35c64d9d2b9439a4294046d3e70..8994d0a138a045b7bbea2bc6c8bf4d6b409764f7 100644 (file)
@@ -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()