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:
Vadim Zeitlin
2006-03-14 15:45:12 +00:00
parent ad332e5bf3
commit 3c81c9aafb
4 changed files with 104 additions and 20 deletions

View File

@@ -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
// ----------------------------------------------------------------------------