网站首页  词典首页

请输入您要查询的函数:

 

术语 ptinrect
释义 PtInRect
语法:
BOOL PtInRect(
__in const RECT *lprc,
__in POINT pt
);
PtInRect函数
该PtInRect函数确定指定点是否在指定的矩形所在。有一点是,如果它位于左侧或顶部侧或在四周内一个矩形。阿右侧或底部点被认为不属于该矩形。
参数
利比里亚炼油公司 [in]
一个矩形结构,它包含指定的矩形的指针。
角 [in]
阿点的结构,它包含指定点。
返回值
如果指定点在矩形的谎言,返回非零值。
如果指定的重点不在于内部的矩形,返回值是零。
备注
该矩形必须正常化之前PtInRect被调用。也就是说,lprc.right必须大于lprc.left和lprc.bottom必须大于lprc.top更大。如果矩形不归,这一点是从来没有考虑内部的矩形。
因为应用程序可以使用不同的目的矩形,矩形的职能不使用明确的衡量单位。相反,所有矩形坐标和尺寸在签署的,逻辑值给出。映射模式和在该矩形用来确定测量装置的功能。
实例
有关示例,请参阅使用矩形。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
矩形概述
矩形函数
EqualRect
IsRectEmpty

RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==PtInRect Function
The PtInRect function determines whether the specified point lies within the specified rectangle. A point is within a rectangle if it lies on the left or top side or is within all four sides. A point on the right or bottom side is considered outside the rectangle.
Syntax
BOOL PtInRect(
__in const RECT *lprc,
__in POINT pt
);
Parameters
lprc [in]
A pointer to a RECT structure that contains the specified rectangle.
pt [in]
A POINT structure that contains the specified point.
Return Value
If the specified point lies within the rectangle, the return value is nonzero.
If the specified point does not lie within the rectangle, the return value is zero.
Remarks
The rectangle must be normalized before PtInRect is called. That is, lprc.right must be greater than lprc.left and lprc.bottom must be greater than lprc.top. If the rectangle is not normalized, a point is never considered inside of the rectangle.
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
EqualRect
IsRectEmpty
POINT
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162882(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:20:15