术语 | getwindowrgnbox |
释义 | GetWindowRgnBox 语法: int GetWindowRgnBox( __in HWND hWnd, __out LPRECT lprc ); GetWindowRgnBox功能 该GetWindowRgnBox函数检索的为一个窗口的窗口区域严密边界矩形的尺寸。 参数 hWnd [in] 窗口句柄。 炼油公司[out] 指针RECT结构,它接收矩形层面,设备单位,相对于左上角窗口的角落。 返回值 返回值指定区域类型的功能获得。它可以是下列值之一。 ValueMeaning COMPLEXREGIONThe地区不止一个矩形。 ERRORThe指定的窗口没有一个地区,或发生错误在试图返回该地区。 NULLREGIONThe区域是空的。 SIMPLEREGIONThe地区是一个矩形。 备注 窗口内的区域确定在制度允许的范围绘图窗口。该系统不显示任何一个窗口,是在窗口以外地区的部分。在一个窗口的窗口地区的坐标是相对于左上角的窗口,而不是窗口的客户区。 要设置一个窗口的窗口地区,调用SetWindowRgn函数。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinuser.h(头文件:winuser.h) LibraryUser32.lib DLLUser32.dll 参见 绘画和绘图概述 绘画和绘图功能 SetWindowRgn GetWindowRgn GetClipBox RECT 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==GetWindowRgnBox Function The GetWindowRgnBox function retrieves the dimensions of the tightest bounding rectangle for the window region of a window. Syntax int GetWindowRgnBox( __in HWND hWnd, __out LPRECT lprc ); Parameters hWnd [in] Handle to the window. lprc [out] Pointer to a RECT structure that receives the rectangle dimensions, in device units relative to the upper-left corner of the window. Return Value The return value specifies the type of the region that the function obtains. It can be one of the following values. ValueMeaning COMPLEXREGIONThe region is more than one rectangle. ERRORThe specified window does not have a region, or an error occurred while attempting to return the region. NULLREGIONThe region is empty. SIMPLEREGIONThe region is a single rectangle. Remarks The window region determines the area within the window where the system permits drawing. The system does not display any portion of a window that lies outside of the window region. The coordinates of a window's window region are relative to the upper-left corner of the window, not the client area of the window. To set the window region of a window, call the SetWindowRgn function. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinuser.h (include Windows.h) LibraryUser32.lib DLLUser32.dll See Also Painting and Drawing Overview Painting and Drawing Functions SetWindowRgn GetWindowRgn GetClipBox RECT Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144951(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。