Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.25 KB

File metadata and controls

53 lines (36 loc) · 1.25 KB

Home

Function name : GetWindowPlacement

Group: Window - Library: user32


The GetWindowPlacement function retrieves the show state and the restored, minimized, and maximized positions of the specified window.


Code examples:

Obtaining some properties for the Windows desktop using the GetWindowPlacement function
Displaying dimmed window behind VFP top-level form

Declaration:

BOOL GetWindowPlacement(
  HWND hWnd,                // handle to window
  WINDOWPLACEMENT *lpwndpl  // position data
);  

FoxPro declaration:

DECLARE INTEGER GetWindowPlacement IN user32;
	INTEGER   hWnd,;
	STRING  @ lpwndpl  

Parameters:

hWnd [in] Handle to the window.

lpwndpl [out] Pointer to the WINDOWPLACEMENT structure that receives the show state and position information.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

Before calling this function set the length member of WINDOWPLACEMENT to sizeof(WINDOWPLACEMENT).