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

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