got rid of wxEvtHandler::m_isWindow, use virtual functions (overridden in wxWindow) instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-26 00:44:55 +00:00
parent 3ed2104c99
commit 4caf847c87
4 changed files with 93 additions and 115 deletions

View File

@@ -2094,6 +2094,22 @@ private:
static const wxEventTableEntry sm_eventTableEntries[];
protected:
// hooks for wxWindow used by ProcessEvent()
// -----------------------------------------
// this one is called before trying our own event table to allow plugging
// in the validators
#if wxUSE_VALIDATORS
virtual bool TryValidator(wxEvent& WXUNUSED(event)) { return false; }
#endif // wxUSE_VALIDATORS
// this one is called after failing to find the event handle in our own
// table to give a chance to the other windows to process it
//
// base class implementation passes the event to wxTheApp
virtual bool TryParent(wxEvent& event);
static const wxEventTable sm_eventTable;
virtual const wxEventTable *GetEventTable() const;
@@ -2111,10 +2127,6 @@ protected:
# endif
#endif
// optimization: instead of using costly IsKindOf() to decide whether we're
// a window (which is true in 99% of cases), use this flag
bool m_isWindow;
// Is event handler enabled?
bool m_enabled;