术语 | framerect |
释义 | FrameRect 语法: int FrameRect( __in HDC hDC, __in const RECT *lprc, __in HBRUSH hbr ); FrameRect功能 该FrameRect函数绘制使用指定的刷子围绕指定的矩形边界。宽度和高度的边界总是一个逻辑单元。 参数 hDC [in] 阿处理设备环境中边界划界。 利比里亚炼油公司 [in] 一个矩形结构,它包含指针逻辑坐标的左上角和低矩形的右下角。 哈佛商业评论 [in] 一个句柄,用来绘制边界的画笔。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 备注 由哈佛商业评论参数确定的刷子必须已创建使用CreateHatchBrush,CreatePatternBrush,或CreateSolidBrush功能,或使用GetStockObject函数检索。 如果RECT结构底部的成员是小于或等于顶端成员或成员的权利,如果小于或等于左边的成员,该函数不绘制矩形。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinuser.h(头文件:winuser.h) LibraryUser32.lib DLLUser32.dll 参见 填充形状概述 填充形状函数 CreateHatchBrush CreatePatternBrush CreateSolidBrush GetStockObject RECT 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==FrameRect Function The FrameRect function draws a border around the specified rectangle by using the specified brush. The width and height of the border are always one logical unit. Syntax int FrameRect( __in HDC hDC, __in const RECT *lprc, __in HBRUSH hbr ); Parameters hDC [in] A handle to the device context in which the border is drawn. lprc [in] A pointer to a RECT structure that contains the logical coordinates of the upper-left and lower-right corners of the rectangle. hbr [in] A handle to the brush used to draw the border. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Remarks The brush identified by the hbr parameter must have been created by using the CreateHatchBrush , CreatePatternBrush , or CreateSolidBrush function, or retrieved by using the GetStockObject function. If the bottom member of the RECT structure is less than or equal to the top member, or if the right member is less than or equal to the left member, the function does not draw the rectangle. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinuser.h (include Windows.h) LibraryUser32.lib DLLUser32.dll See Also Filled Shapes Overview Filled Shape Functions CreateHatchBrush CreatePatternBrush CreateSolidBrush GetStockObject RECT Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144838(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。