The ArrangeIconicWindows function arranges all the minimized (iconic) child windows of the specified parent window.
UINT ArrangeIconicWindows(
HWND hWnd // handle to parent window
);
If the function succeeds, the return value is the height of one row of icons.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
An application that maintains its own minimized child windows can use the ArrangeIconicWindows function to arrange icons in a parent window. This function can also arrange icons on the desktop. To retrieve the window handle to the desktop window, use the GetDesktopWindow function.
An application sends the WM_MDIICONARRANGE message to the multiple document interface (MDI) client window to prompt the client window to arrange its minimized MDI child windows.
Windows NT: Requires version 3.1 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, CloseWindow, GetDesktopWindow