client area origin handling fixes for univ/wxTLW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -265,7 +265,7 @@ long wxTopLevelWindow::HitTest(const wxPoint& pt) const
|
|||||||
wxTopLevelWindowNative::DoGetClientSize(&w, &h);
|
wxTopLevelWindowNative::DoGetClientSize(&w, &h);
|
||||||
wxRect rect(wxTopLevelWindowNative::GetClientAreaOrigin(), wxSize(w, h));
|
wxRect rect(wxTopLevelWindowNative::GetClientAreaOrigin(), wxSize(w, h));
|
||||||
|
|
||||||
return m_renderer->HitTestFrame(rect, pt, GetDecorationsStyle());
|
return m_renderer->HitTestFrame(rect, pt+GetClientAreaOrigin(), GetDecorationsStyle());
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user