The CascadeWindows function cascades the specified child windows of the specified parent window.
WORD WINAPI CascadeWindows(
HWND hwndParent, // handle to parent window
UINT wHow, // types of windows not to arrange
CONST RECT *lpRect, // rectangle to arrange windows in
UINT cKids, // number of windows to arrange
const HWND FAR *lpKids // array of window handles
);
If the function succeeds, the return value is the number of windows arranged.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Calling CascadeWindows causes all maximized windows to be restored to their previous size.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Windows Overview, Window Functions, RECT