Exemplo n.º 1
0
 /// <summary>
 ///     Retrieve if the window is minimized (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 IsMinimized(this IInteropWindow interopWindow, bool forceUpdate = false)
 {
     if (!interopWindow.IsMinimized.HasValue || forceUpdate)
     {
         interopWindow.IsMinimized = User32Api.IsIconic(interopWindow.Handle);
     }
     return(interopWindow.IsMinimized.Value);
 }