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

@@ -224,6 +224,12 @@ protected:
// add support for wxCENTRE_ON_SCREEN
virtual void DoCentre(int dir);
// no need to do client to screen translation to get our position in screen
// coordinates: this is already the case
virtual void DoGetScreenPosition(int *x, int *y) const
{
return DoGetPosition(x, y);
}
// test whether this window makes part of the frame
// (menubar, toolbar and statusbar are excluded from automatic layout)