Test for x, y in GetPosition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -839,7 +839,9 @@ void wxMDIChildFrame::DoGetPosition(int *x, int *y) const
|
|||||||
wxMDIParentFrame *mdiParent = (wxMDIParentFrame *)GetParent();
|
wxMDIParentFrame *mdiParent = (wxMDIParentFrame *)GetParent();
|
||||||
::ScreenToClient((HWND) mdiParent->GetClientWindow()->GetHWND(), &point);
|
::ScreenToClient((HWND) mdiParent->GetClientWindow()->GetHWND(), &point);
|
||||||
|
|
||||||
|
if (x)
|
||||||
*x = point.x;
|
*x = point.x;
|
||||||
|
if (y)
|
||||||
*y = point.y;
|
*y = point.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user