Пример #1
0
 public bool IsForeground()
 {
     return(WinApi.IsForegroundWindow(handle));
 }
Пример #2
0
        public RectangleF GetWindowRectangle()
        {
            Rectangle rectangle = WinApi.GetClientRectangle(handle);

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