SetWindowPlacement

<< Click to Display Table of Contents >>

 

SetWindowPlacement

SetWindowPlacement([PosX], [PosY], [SizeX], [SizeY])

Informs position and size of PowerExplorer's window. If no position nor size is specified, this window's positioning obeys an automatic mode:

Initial size is the minimum, and the next time this window is opened, this initial size is stored and reused

Initial position is centered, and the next time this window is opened, this initial position is stored and reused

 

NOTE

Information about this window's position and size is stored on Windows Registry, on a per-user basis, and it is specific to every object open on PowerExplorer.

 

The SetWindowPlacement method can be used when PowerExplorer is visible or not. If this window is already open, it is moved and resized immediately. Otherwise, the last position and size are stored for use when that window is opened again.

All parameters are optional, but only valid if informed in pairs (PosX with PosY and SizeX with SizeY). If only positional parameters are informed (PosX and PosY), size is not affected. Likewise, if only size parameters are informed (SizeX and SizeY), position is not affected.

Summary of PowerExplorer's window behavior

 

Automatic Mode

Non-Specified Position

Non-Specified Size

Size

Minimum or the last one stored

--

Minimum

Position

Centered or the last one stored

Centered

--

Was this page useful?