From: David Elliott Date: Wed, 24 Dec 2003 19:53:29 +0000 (+0000) Subject: Added note about (not) multiply inheriting from wxEvtHandler which includes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a685e84a97b9d9f3c8c00300aa2e4fe626531c68 Added note about (not) multiply inheriting from wxEvtHandler which includes a very brief technical overview of how events work. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/evthand.tex b/docs/latex/wx/evthand.tex index ab602afed6..8eeb77b11a 100644 --- a/docs/latex/wx/evthand.tex +++ b/docs/latex/wx/evthand.tex @@ -4,6 +4,12 @@ A class that can handle events from the windowing system. wxWindow (and therefore all window classes) are derived from this class. +When events are received, wxEvtHandler invokes the method listed in the +event table using itself as the object. When using multiple inheritance +it is imperative that the wxEvtHandler(-derived) class be the first +class inherited such that the "this" pointer for the overall object +will be identical to the "this" pointer for the wxEvtHandler portion. + \wxheading{Derived from} \helpref{wxObject}{wxobject}