HWND GetNextWindow(hwnd, uFlag) | |||||
HWND hwnd; | /* handle of current window | */ | |||
UINT uFlag; | /* direction flag, */ |
The GetNextWindow function searches for the handle of 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 given window is a top-level window, the function searches for the next (or previous) handle of a top-level window. If the given window is a child window, the function searches for the handle of the next (or previous) child window.
hwnd
Identifies the current window.
uFlag
Specifies whether the function should return a handle to the next window or to the previous window. It can be either of the following values:
Value | Meaning |
GW_HWNDNEXT | Returns a handle of the next window. |
GW_HWNDPREV | Returns a handle of the previous window. |
The return value is the handle of the next (or previous) window in the window manager's list if the function is successful.