Ejemplo n.º 1
0
        public static bool IsWindowMazimized(IntPtr Handle)
        {
            Windowing.WINDOWPLACEMENT placement = new Windowing.WINDOWPLACEMENT();
            placement.length = Marshal.SizeOf(placement);
            Windowing.GetWindowPlacement(Handle, out placement);

            return(placement.showCmd == 3);

            //Rectangle WorkingAreaRect = Screen.FromHandle(Handle).WorkingArea;
            //Rectangle WindowRect = GetWindowRectangle(Handle);

            //return WindowRect.Equals(WorkingAreaRect);

            ////unreliable, for example, with Zune
            ////return (Unmanaged.GetWindowLong(Handle, Unmanaged.GWL_STYLE) & Unmanaged.WS_MAXIMIZE) != 0;
        }
Ejemplo n.º 2
0
        public static bool IsWindowMazimized(IntPtr Handle)
        {
            Windowing.WINDOWPLACEMENT placement = new Windowing.WINDOWPLACEMENT();
            placement.length = Marshal.SizeOf(placement);
            Windowing.GetWindowPlacement(Handle, out placement);

            return placement.showCmd == 3;

            //Rectangle WorkingAreaRect = Screen.FromHandle(Handle).WorkingArea;
            //Rectangle WindowRect = GetWindowRectangle(Handle);

            //return WindowRect.Equals(WorkingAreaRect);

            ////unreliable, for example, with Zune
            ////return (Unmanaged.GetWindowLong(Handle, Unmanaged.GWL_STYLE) & Unmanaged.WS_MAXIMIZE) != 0;
        }