网站首页  词典首页

请输入您要查询的函数:

 

术语 setrect
释义 SetRect
语法:
BOOL SetRect(
__out LPRECT lprc,
__in int xLeft,
__in int yTop,
__in int xRight,
__in int yBottom
);
SetRect函数
该SetRect函数设置指定矩形的坐标。这相当于分配左,上,右,和到达底部的RECT结构参数的适当的成员。
参数
炼油公司[out]
指向RECT结构,它包含要设置矩形。
xLeft [in]
指定x坐标矩形的左上角。
yTop [in]
指定的y坐标矩形的左上角。
xRight [in]
指定x坐标矩形的右下角。
坐标值 [in]
指定的y坐标矩形的右下角。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
因为应用程序可以使用不同的目的矩形,矩形的职能不使用明确的衡量单位。相反,所有矩形坐标和尺寸在签署的,逻辑值给出。映射模式和在该矩形用来确定测量装置的功能。
实例
有关示例,请参阅使用矩形。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
矩形概述
矩形函数
CopyRect
SetRectEmpty
RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetRect Function
The SetRect function sets the coordinates of the specified rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the RECT structure.
Syntax
BOOL SetRect(
__out LPRECT lprc,
__in int xLeft,
__in int yTop,
__in int xRight,
__in int yBottom
);
Parameters
lprc [out]
Pointer to the RECT structure that contains the rectangle to be set.
xLeft [in]
Specifies the x-coordinate of the rectangle's upper-left corner.
yTop [in]
Specifies the y-coordinate of the rectangle's upper-left corner.
xRight [in]
Specifies the x-coordinate of the rectangle's lower-right corner.
yBottom [in]
Specifies the y-coordinate of the rectangle's lower-right corner.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
Because applications can use rectangles for different purposes, the rectangle functions do not use an explicit unit of measure. Instead, all rectangle coordinates and dimensions are given in signed, logical values. The mapping mode and the function in which the rectangle is used determine the units of measure.
Examples
For an example, see Using Rectangles .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Rectangles Overview
Rectangle Functions
CopyRect
SetRectEmpty
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145085(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 13:22:21