Esempio n. 1
0
 public bool IsForeground()
 {
     return(WinApi.IsForegroundWindow(handle));
 }
Esempio n. 2
0
        public RectangleF GetWindowRectangle()
        {
            Rectangle rectangle = WinApi.GetClientRectangle(handle);

            return(new RectangleF(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height));
        }