User32IsWindowVisible(IntPtr) 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(
	IntPtr hWnd
)

Parameters

hWnd  IntPtr
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 WS_VISIBLE style, it may be nonzero even if the window is totally obscured by other windows.

Remarks

See Also