]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
mingw/cygwin compilation fix (patch 556157)
[wxWidgets.git] / src / msw / tbar95.cpp
index 7c6515ff121ade578094738c8e1286391acfa22e..c160e85885de4d19a17afdcffae224ad17cba91e 100644 (file)
@@ -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