示例#1
0
        public void GetWindowRect(ref CRect rect)
        {
            if (_control == null)
            {
                return;
            }

            rect.SetRect(_control.Left, _control.Top, _control.Right, _control.Bottom);
        }
示例#2
0
        public void GetClientRect(ref CRect rect)
        {
            Rectangle rectangle = this.ClientRectangle;

            rect.SetRect(rectangle.Left, rectangle.Top, rectangle.Right, rectangle.Bottom);
        }
示例#3
0
 public void GetWindowRect(ref CRect rect)
 {
     rect.SetRect(this.Left, this.Top, this.Right, this.Bottom);
 }