Ctrl *Ctrl::GetTopRect(Rect& r, bool inframe) { if(!inframe) { r &= Rect(GetSize()); r.Offset(GetView().TopLeft()); } if(parent) { r.Offset(GetRect().TopLeft()); return parent->GetTopRect(r, InFrame()); } return this; }
Report message to a moderator