// Gets the rect inside the parent window Rect Ctrl::GetRectInParentWindow(void) const { GuiLock __; Rect r = GetScreenRect(); Ctrl *q = parent; while(q && !q->top) q = q->parent; if(q) { Rect pr = q->GetScreenRect(); r -= pr.TopLeft(); } return r; }
Report message to a moderator