The TileWindows function tiles the specified windows, or the child windows of the specified parent window.
WORD WINAPI TileWindows(
HWND hwndParent, |
// handle of 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 |
); |
Value |
Meaning |
MDITILE_HORIZONTAL |
Tiles windows horizontally. |
MDITILE_VERTICAL |
Tiles windows vertically. |
lpRect
Points to a SMALL_RECT structure that specifies the rectangular area, in screen coordinates, within which the windows are arranged. If this parameter is NULL, the client area of the parent window is used.
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.