BOOL SetWindowPlacement(hwnd, lpwndpl) | |||||
HWND hwnd; | /* handle of the window | */ | |||
WINDOWPLACEMENT * lpwndpl; | /* address of position data struct | */ |
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;
The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.
GetWindowPlacement