don't draw resize sash if it's dragged outside of managed frame

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams 2009-03-27 13:06:17 +00:00
parent cd67553cf4
commit 36adcfc913

View File

@ -4376,9 +4376,19 @@ void wxAuiManager::OnMotion(wxMouseEvent& event)
wxScreenDC dc;
if (!m_action_hintrect.IsEmpty())
{
// remove old resize hint
DrawResizeHint(dc, m_action_hintrect);
DrawResizeHint(dc, rect);
m_action_hintrect = rect;
m_action_hintrect = wxRect();
}
// draw new resize hint, if it's inside the managed frame
wxRect frame_screen_rect = m_frame->GetScreenRect();
if (frame_screen_rect.Contains(rect))
{
DrawResizeHint(dc, rect);
m_action_hintrect = rect;
}
}
}
}