网站首页  词典首页

请输入您要查询的函数:

 

术语 roundrect
释义 RoundRect
语法:
BOOL RoundRect(
__in HDC hdc,
__in int nLeftRect,
__in int nTopRect,
__in int nRightRect,
__in int nBottomRect,
__in int nWidth,
__in int nHeight
);
RoundRect函数
该RoundRect函数绘制一个圆角矩形。概述了该矩形使用目前的笔和使用当前画笔填补。
参数
hdc [in]
一个句柄,设备上下文。
nLeftRect [in]
的x坐标,在逻辑坐标,在矩形的左上角。
nTopRect [in]
在y坐标,在逻辑坐标,在矩形的左上角。
nRightRect [in]
的x坐标,在逻辑坐标下,,矩形的右上角。
nBottomRect [in]
在y坐标,在逻辑坐标下,,矩形的右上角。
nWidth [in]
的宽度,以逻辑坐标,用于绘制圆角的椭圆。
nHeight [in]
的高度,以逻辑坐标,用于绘制圆角的椭圆。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
当前位置既不更新也不使用这项功能。
实例
有关示例,请参阅使用填充的形状。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
填充形状概述
填充形状函数
矩形
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==RoundRect Function
The RoundRect function draws a rectangle with rounded corners. The rectangle is outlined by using the current pen and filled by using the current brush.
Syntax
BOOL RoundRect(
__in HDC hdc,
__in int nLeftRect,
__in int nTopRect,
__in int nRightRect,
__in int nBottomRect,
__in int nWidth,
__in int nHeight
);
Parameters
hdc [in]
A handle to the device context.
nLeftRect [in]
The x-coordinate, in logical coordinates, of the upper-left corner of the rectangle.
nTopRect [in]
The y-coordinate, in logical coordinates, of the upper-left corner of the rectangle.
nRightRect [in]
The x-coordinate, in logical coordinates, of the lower-right corner of the rectangle.
nBottomRect [in]
The y-coordinate, in logical coordinates, of the lower-right corner of the rectangle.
nWidth [in]
The width, in logical coordinates, of the ellipse used to draw the rounded corners.
nHeight [in]
The height, in logical coordinates, of the ellipse used to draw the rounded corners.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The current position is neither used nor updated by this function.
Examples
For an example, see Using Filled Shapes .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Filled Shapes Overview
Filled Shape Functions
Rectangle
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162944(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:26:43