Esempio n. 1
0
 public Rect(Util.WinApi.RECT r)
 {
     top    = r.top;
     bottom = r.bottom;
     left   = r.left;
     right  = r.right;
     width  = r.right - r.left;
     height = r.bottom - r.top;
 }
 public Rect WindowRectangle()
 {
     Util.WinApi.RECT r = new Util.WinApi.RECT();
     Util.WinApi.GetWindowRect(client.MainWindowHandle, ref r);
     return(new Rect(r));
 }