网站首页  词典首页

请输入您要查询的函数:

 

术语 subtractrect
释义 SubtractRect
语法:
BOOL SubtractRect(
__out LPRECT lprcDst,
__in const RECT *lprcSrc1,
__in const RECT *lprcSrc2
);
SubtractRect功能
该SubtractRect函数确定由减去另一个矩形形成一个矩形坐标。
参数
lprcDst [out]
一个RECT结构,它接收的矩形减去所确定的矩形坐标指出,从矩形lprcSrc2指出lprcSrc1的指针。
lprcSrc1 [in]
一个 RECT结构从该矩形函数减去所指出lprcSrc2的指针。
lprcSrc2 [in]
一个RECT结构,函数从该矩形减去指针指向lprcSrc1。
返回值
如果得到的矩形空,则返回值是零。
如果得到的矩形不为空,则返回值为非零。
备注
该函数只减去了lprcSrc2规定由指定的矩形lprcSrc1矩形矩形相交时,完全可以在X或Y方向。例如,如果* lprcSrc1,有坐标(10,10,100,100)和* lprcSrc2有坐标(50,50,150,150),该函数设置矩形的坐标指向lprcDst至(10,10,100,100)。已如果* lprcSrc1的坐标(10,10,100,100)和* lprcSrc2有坐标(50,10,150,150),但是,该函数设置矩形的坐标指向lprcDst至(10,10,50,100)。换句话说,由此产生的矩形是不同的几何边界框。
因为应用程序可以使用不同的目的矩形,矩形的职能不使用明确的衡量单位。相反,所有矩形坐标和尺寸在签署的,逻辑值给出。映射模式和在该矩形用来确定测量装置的功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
矩形概述
矩形函数
IntersectRect
RECT
UnionRect
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SubtractRect Function
The SubtractRect function determines the coordinates of a rectangle formed by subtracting one rectangle from another.
Syntax
BOOL SubtractRect(
__out LPRECT lprcDst,
__in const RECT *lprcSrc1,
__in const RECT *lprcSrc2
);
Parameters
lprcDst [out]
A pointer to a RECT structure that receives the coordinates of the rectangle determined by subtracting the rectangle pointed to by lprcSrc2 from the rectangle pointed to by lprcSrc1.
lprcSrc1 [in]
A pointer to a RECT structure from which the function subtracts the rectangle pointed to by lprcSrc2.
lprcSrc2 [in]
A pointer to a RECT structure that the function subtracts from the rectangle pointed to by lprcSrc1.
Return Value
If the resulting rectangle is empty, the return value is zero.
If the resulting rectangle is not empty, the return value is nonzero.
Remarks
The function only subtracts the rectangle specified by lprcSrc2 from the rectangle specified by lprcSrc1 when the rectangles intersect completely in either the x- or y-direction. For example, if *lprcSrc1 has the coordinates (10,10,100,100) and *lprcSrc2 has the coordinates (50,50,150,150), the function sets the coordinates of the rectangle pointed to by lprcDst to (10,10,100,100). If *lprcSrc1 has the coordinates (10,10,100,100) and *lprcSrc2 has the coordinates (50,10,150,150), however, the function sets the coordinates of the rectangle pointed to by lprcDst to (10,10,50,100). In other words, the resulting rectangle is the bounding box of the geometric difference.
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.
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
IntersectRect
RECT
UnionRect
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145125(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:16:21