HWND GetNextWindow(hwnd, fuCmd) | |||||
HWND hwnd; | /* handle of current window | */ | |||
UINT fuCmd; | /* direction flag | */ |
This function searches for a handle that identifies the next (or previous) window in the window-manager's list. The window-manager's list contains entries for all top-level windows, their associated child windows, and the child windows of any child windows. If the hwnd parameter is a handle to a top-level window, the function searches for the next (or previous) handle to a top-level window; if hwnd is a handle to a child window, the function searches for a handle to the next (or previous) child window.
hwnd
Identifies the current window.
fuCmd
Specifies whether the function returns a handle to the next window or to the previous window. It can be either of the following values:
Value | Meaning |
GW_HWNDNEXT | Returns the window that follows the given window on the window manager's list. |
GW_HWNDPREV | Returns the previous window on the window manager's list. |
The return value identifies the next (or the previous) window in the window-manager's list.
GetWindow, GetTopWindow