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

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2009-03-27 13:18:30 +00:00
parent 0217731f91
commit b6dfd1ee34

View File

@@ -4378,9 +4378,19 @@ void wxAuiManager::OnMotion(wxMouseEvent& event)
wxScreenDC dc;
#endif
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;
}
}
}
}