WINDOWINFO Structure

The WINDOWINFO structure contains window information.

Syntax

typedef struct {
    DWORD cbSize;
    RECT rcWindow;
    RECT rcClient;
    DWORD dwStyle;
    DWORD dwExStyle;
    DWORD dwWindowStatus;
    UINT cxWindowBorders;
    UINT cyWindowBorders;
    ATOM atomWindowType;
    WORD wCreatorVersion;
} WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO;

Members

cbSize
The size of the structure, in bytes. The caller must set this to sizeof(WINDOWINFO).
rcWindow
Pointer to a RECT structure that specifies the coordinates of the window.
rcClient
Pointer to a RECT structure that specifies the coordinates of the client area.
dwStyle
The window styles. For a table of window styles, see CreateWindowEx.
dwExStyle
The extended window styles. For a table of extended window styles, see CreateWindowEx.
dwWindowStatus
The window status. If this member is WS_ACTIVECAPTION, the window is active. Otherwise, this member is zero.
cxWindowBorders
The width of the window border, in pixels.
cyWindowBorders
The height of the window border, in pixels.
atomWindowType
The window class atom (see RegisterClass).
wCreatorVersion
The Microsoft Windows version of the application that created the window.

Structure Information

HeaderDeclared in Winuser.h, include Windows.h
Minimum operating systems Windows 98, Windows NT 4.0 Service Pack 3

See Also

Tags :


Community Content

YetAnotherGreg
What Coordinate space are these in?
rcWindow is obviously in screen coordinates.
rcClient is (not so obviously) also in screen coordinates.
Tags :

Page view tracker