X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3216dbf5dccab8ed6dc0245b7e5c998738ef51d7..32f8e36335fbd7116593bf57917a9be294cae363:/include/wx/univ/toolbar.h?ds=sidebyside diff --git a/include/wx/univ/toolbar.h b/include/wx/univ/toolbar.h index 52d53e606b..823888bda4 100644 --- a/include/wx/univ/toolbar.h +++ b/include/wx/univ/toolbar.h @@ -129,11 +129,12 @@ private: wxCoord m_maxWidth, m_maxHeight; - // the current tool or NULL + // the tool over which the mouse currently is or NULL wxToolBarToolBase *m_toolCurrent; - // the currently pressed tool or NULL - wxToolBarToolBase *m_toolPressed; + // the tool which currently has the mouse capture (i.e. the one user is + // pressing) or NULL + wxToolBarTool *m_toolPressed; DECLARE_DYNAMIC_CLASS(wxToolBar) }; @@ -151,6 +152,8 @@ public: virtual bool HandleKey(wxInputConsumer *consumer, const wxKeyEvent& event, bool pressed); + virtual bool HandleMouse(wxInputConsumer *consumer, + const wxMouseEvent& event); virtual bool HandleMouseMove(wxInputConsumer *consumer, const wxMouseEvent& event); virtual bool HandleFocus(wxInputConsumer *consumer, const wxFocusEvent& event); virtual bool HandleActivation(wxInputConsumer *consumer, bool activated);