GetWindowPlacement The GetWindowPlacement function retrieves the show state and the restored, minimized, and maximized positions of the specified window.
VB4-32,5,6
Declare Function GetWindowPlacement Lib "user32" (ByVal hwnd As Long, lpwndpl As WINDOWPLACEMENT) As Long |
VB.NET
System.Windows.Forms.Form.DesktopLocation;System.Windows.Forms.Form.Size |
Operating Systems Supported |
Requires Windows NT 3.1 or later; Requires Windows 95 or later |
- hWnd
[in] Handle to the window.
- lpwndpl
[out] Pointer to the WINDOWPLACEMENT structure that receives the show state and position information.
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. |
|