Exemplo n.º 1
0
 /// <summary>
 ///     Retrieve if the window is Visible (IsWindowVisible, whatever that means)
 /// </summary>
 /// <param name="interopWindow">InteropWindow</param>
 /// <param name="forceUpdate">set to true to make sure the value is updated</param>
 /// <returns>bool true if minimizedIconic (minimized)</returns>
 public static bool IsVisible(this IInteropWindow interopWindow, bool forceUpdate = false)
 {
     if (!interopWindow.IsVisible.HasValue || forceUpdate)
     {
         interopWindow.IsVisible = User32Api.IsWindowVisible(interopWindow.Handle);
     }
     return(interopWindow.IsVisible.Value);
 }