The GetWindowPlacement function retrieves the show state and the restored, minimized, and maximized positions of the specified window.
BOOL GetWindowPlacement(
HWND hWnd, |
// handle of window |
WINDOWPLACEMENT *lpwndpl |
// address of structure for position data |
); |
Before calling GetWindowPlacement, set the length member of the WINDOWPLACEMENT structure to sizeof(WINDOWPLACEMENT).
GetWindowPlacement fails if lpwndpl->length is not set correctly.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The flags member of WINDOWPLACEMENT retrieved by this function is always zero. If the window identified by the hWnd parameter is maximized, the showCmd member is SW_SHOWMAXIMIZED. If the window is minimized, showCmd is SW_SHOWMINIMIZED. Otherwise, it is SW_SHOWNORMAL.
The length member of WINDOWPLACEMENT must be set to sizeof(WINDOWPLACEMENT). If this member is not set correctly, the function returns FALSE.
SetWindowPlacement, WINDOWPLACEMENT
file: /Techref/os/win/api/win32/func/src/f42_18.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/12/29 04:41,
18.224.43.98:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f42_18.htm"> GetWindowPlacement</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.