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

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

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