Rect::Contains 方法确定点是否在此矩形内。
语法
BOOL Contains(
[in] const Point & pt
);
参数
[in] pt
类型: const Point&
对要测试的点的引用。
返回值
类型: BOOL
如果点位于矩形内,则此方法返回 TRUE;否则,它将返回 FALSE。
要求
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] |
| 最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] |
| 目标平台 | Windows |
| 标头 | gdiplustypes.h (包括 Gdiplus.h) |
| Library | Gdiplus.lib |
| DLL | Gdiplus.dll |