BOOL SetWindowPlacement(hwnd, lpwndpl) | |||||
HWND hwnd; | /* handle of the window, */ | ||||
const WINDOWPLACEMENT FAR* lpwndpl; | /* address of structure with position data | */ |
The SetWindowPlacement function sets the show state and the normal (restored), minimized, and maximized positions for a window.
hwnd
Identifies the window.
lpwndpl
Points to a WINDOWPLACEMENT structure that specifies the new show state and positions. The WINDOWPLACEMENT structure has the following form:
typedef struct tagWINDOWPLACEMENT { /* wndpl */
UINT length;
UINT flags;
UINT showCmd;
POINT ptMinPosition;
POINT ptMaxPosition;
RECT rcNormalPosition;
} WINDOWPLACEMENT;
For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.
The return value is nonzero if the function is successful. Otherwise, it is zero.