GetWindowCmd Enumeration

The relationship between the specified window and the window whose handle is to be retrieved.

gwCmd parameter of GetWindow(IntPtr, GetWindowCmd) function.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public enum GetWindowCmd

Remarks

Members

HwndFirst 0 The retrieved handle identifies the window of the same type that is highest in the Z order.

If the specified window is a topmost window, the handle identifies a topmost window.

If the specified window is a top-level window, the handle identifies a top-level window.

If the specified window is a child window, the handle identifies a sibling window.

HwndLast 1 The retrieved handle identifies the window of the same type that is lowest in the Z order.

If the specified window is a topmost window, the handle identifies a topmost window.

If the specified window is a top-level window, the handle identifies a top-level window.

If the specified window is a child window, the handle identifies a sibling window.

HwndNext 2 The retrieved handle identifies the window below the specified window in the Z order.

If the specified window is a topmost window, the handle identifies a topmost window.

If the specified window is a top-level window, the handle identifies a top-level window.

If the specified window is a child window, the handle identifies a sibling window

HwndPrev 3 The retrieved handle identifies the window above the specified window in the Z order.

If the specified window is a topmost window, the handle identifies a topmost window.

If the specified window is a top-level window, the handle identifies a top-level window.

If the specified window is a child window, the handle identifies a sibling window.

Owner 4 The retrieved handle identifies the specified window's owner window, if any.

For more information, see https://msdn.microsoft.com/en-us/library/windows/desktop/ms632599(v=vs.85).aspx#owned_windows

Child 5 The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window;

otherwise, the retrieved handle is Zero.

The function examines only child windows of the specified window. It does not examine descendant windows

EnabledPopup 6 The retrieved handle identifies the enabled popup window owned by the specified window (the search uses the first such window found using GW_HWNDNEXT);

otherwise, if there are no enabled popup windows, the retrieved handle is that of the specified window.

See Also