added GetScreenPosition/Rect() which always return the screen coordinates of the window (for child windows and TLWs alike)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -715,6 +715,18 @@ wxSize wxWindowBase::DoGetVirtualSize() const
|
||||
return size;
|
||||
}
|
||||
|
||||
void wxWindowBase::DoGetScreenPosition(int *x, int *y) const
|
||||
{
|
||||
// screen position is the same as (0, 0) in client coords for non TLWs (and
|
||||
// TLWs override this method)
|
||||
if ( x )
|
||||
*x = 0;
|
||||
if ( y )
|
||||
*y = 0;
|
||||
|
||||
return ClientToScreen(x, y);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// show/hide/enable/disable the window
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user