4 out of 21 rated this helpful - Rate this topic

WINDOWINFO structure

Applies to: desktop apps only

Contains window information.

Syntax

typedef struct tagWINDOWINFO {
  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

Type: DWORD

The size of the structure, in bytes. The caller must set this member to sizeof(WINDOWINFO).

rcWindow

Type: RECT

The coordinates of the window.

rcClient

Type: RECT

The coordinates of the client area.

dwStyle

Type: DWORD

The window styles. For a table of window styles, see Window Styles.

dwExStyle

Type: DWORD

The extended window styles. For a table of extended window styles, see Extended Window Styles.

dwWindowStatus

Type: DWORD

The window status. If this member is WS_ACTIVECAPTION (0x0001), the window is active. Otherwise, this member is zero.

cxWindowBorders

Type: UINT

The width of the window border, in pixels.

cyWindowBorders

Type: UINT

The height of the window border, in pixels.

atomWindowType

Type: ATOM

The window class atom (see RegisterClass).

wCreatorVersion

Type: WORD

The Windows version of the application that created the window.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

See also

Reference
CreateWindowEx
GetWindowInfo
RegisterClass
Conceptual
Windows

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
What Coordinate space are these in?
rcWindow is obviously in screen coordinates.
rcClient is (not so obviously) also in screen coordinates.