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,12 +4378,22 @@ void wxAuiManager::OnMotion(wxMouseEvent& event)
wxScreenDC dc; wxScreenDC dc;
#endif #endif
if (!m_action_hintrect.IsEmpty()) if (!m_action_hintrect.IsEmpty())
{
// remove old resize hint
DrawResizeHint(dc, m_action_hintrect); DrawResizeHint(dc, m_action_hintrect);
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); DrawResizeHint(dc, rect);
m_action_hintrect = rect; m_action_hintrect = rect;
} }
} }
} }
}
else if (m_action == actionClickCaption) else if (m_action == actionClickCaption)
{ {
int drag_x_threshold = wxSystemSettings::GetMetric(wxSYS_DRAG_X); int drag_x_threshold = wxSystemSettings::GetMetric(wxSYS_DRAG_X);