From: Mattia Barbon Date: Thu, 2 May 2002 20:03:19 +0000 (+0000) Subject: Generate EVT_TOOL_ENTER when the user moves the mouse out of the toolbar X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fe87983b952557392f099795b435d00c6f183b45 Generate EVT_TOOL_ENTER when the user moves the mouse out of the toolbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 7c6515ff12..c160e85885 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -1148,6 +1148,13 @@ void wxToolBar::OnSysColourChanged(wxSysColourChangedEvent& event) void wxToolBar::OnMouseEvent(wxMouseEvent& event) { + if (event.Leaving() && m_pInTool) + { + OnMouseEnter( -1 ); + event.Skip(); + return; + } + if (event.RightDown()) { // For now, we don't have an id. Later we could