예제 #1
0
 /// <summary>
 ///     Retrieve if the window is maximized (Iconic)
 /// </summary>
 /// <param name="interopWindow">InteropWindow</param>
 /// <param name="forceUpdate">set to true to make sure the value is updated</param>
 /// <returns>bool true if Iconic (minimized)</returns>
 public static bool IsMaximized(this IInteropWindow interopWindow, bool forceUpdate = false)
 {
     if (!interopWindow.IsMaximized.HasValue || forceUpdate)
     {
         interopWindow.IsMaximized = User32Api.IsZoomed(interopWindow.Handle);
     }
     return(interopWindow.IsMaximized.Value);
 }