WINDOWPLACEMENT Structure

The WINDOWPLACEMENT data structure has the following form:

typedef struct tagWINDOWPLACEMENT {     /* wndpl */
    UINT  length;
    UINT  flags;
    UINT  showCmd;
    POINT ptMinPosition;
    POINT ptMaxPosition;
    RECT  rcNormalPosition;
} WINDOWPLACEMENT;

The WINDOWPLACEMENT structure contains information about the placement of a window on the screen.

Members

length

Specifies the length, in bytes, of the structure.

flags

Specifies flags that control the position of the minimized window and the method by which the window is restored. This member can be one or both of the following flags:

showCmd

Specifies the current show state of the window. This member can be one of the following values:

ptMinPosition

Specifies the position of the window’s top-left corner when the window is minimized.

ptMaxPosition

Specifies the position of the window’s top-left corner when the window is maximized.

rcNormalPosition

Specifies the window’s coordinates when the window is in the normal (restored) position.

See Also   CWnd::SetWindowPlacement