WINDOWPOS Structure

The WINDOWPOS data structure has the following form:

typedef struct tagWINDOWPOS { /* wp */
    HWND    hwnd;
    HWND    hwndInsertAfter;
    int     x;
    int     y;
    int     cx;
    int     cy;
    UINT    flags;
} WINDOWPOS;

The WINDOWPOS structure contains information about the size and position of a window.

Members

hwnd

Identifies the window.

hwndInsertAfter

Identifies the window behind which this window is placed.

x

Specifies the position of the left edge of the window.

y

Specifies the position of the right edge of the window.

cx

Specifies the window width, in pixels.

cy

Specifies the window height, in pixels.

flags

Specifies window-positioning options. This member can be one of the following values:

See Also   CWnd::OnWindowPosChanging