WINDOWINFO

WINDOWINFO【WINDOWINFO】WINDOWINFO结构 , 用于保存视窗信息 。GetWindowInfo API(检索有关指定视窗的信息)的输出参数 。
基本介绍中文名:WINDOWINFO
外文名:WINDOWINFO
结构原型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;结构成员cbSize
Type:DWORD
The size of the structure, in bytes. The caller must set this member tosizeof(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, seeWindow Styles.
dwExStyle
Type:DWORD
The extended window styles. For a table of extended window styles, seeExtended Window Styles.
dwWindowStatus
Type:DWORD
The window status. If this member isWS_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 (seeRegisterClass).
wCreatorVersion
Type:WORD
The Windows version of the application that created the window.
C#定义语法/// <summary>/// WINDOWINFO结构 , 用于保存视窗信息 。/// </summary>[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]public struct WINDOWINFO{/// DWORD->unsigned intpublic uint cbSize;/// RECT->tagRECTpublic tagRECT rcWindow;/// RECT->tagRECTpublic tagRECT rcClient;/// DWORD->unsigned intpublic uint dwStyle;/// DWORD->unsigned intpublic uint dwExStyle;/// DWORD->unsigned intpublic uint dwWindowStatus;/// UINT->unsigned intpublic uint cxWindowBorders;/// UINT->unsigned intpublic uint cyWindowBorders;/// ATOM->WORD->unsigned shortpublic ushort atomWindowType;/// WORD->unsigned shortpublic ushort wCreatorVersion;}/// <summary>/// RECT结构 , 用于保存视窗或客户区的位置及大小 。/// </summary>[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]public struct tagRECT{/// LONG->intpublic int left;/// LONG->intpublic int top;/// LONG->intpublic int right;/// LONG->intpublic int bottom; }