User32IsWindowVisible(SafeHandle) Method

Determines the visibility state of the specified window.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool IsWindowVisible(
	SafeHandle hWnd
)

Parameters

hWnd  SafeHandle
A handle to the window to be tested.

Return Value

Boolean
If the specified window, its parent window, its parent's parent window, and so forth, have the Visible style, the return value is .

Otherwise, the return value is .

Because the return value specifies whether the window has the Visible style, it may be nonzero even if the window is minimized or totally obscured by other windows.

Remarks

See Also