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

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