mypoint := point(a,b);
myrect := rect(x,y,z,w);
if (a>x) and (a<z) and (b>z) and (b<w) then result := true
else result :=false;
myrect := rect(x,y,z,w);
if (a>x) and (a<z) and (b>z) and (b<w) then result := true
else result :=false;
解决方案 »
- 怎么让桌面显示图片
- 关于DELPHI 2009 帮助文档
- 怎样取得Variant arrays数组的长度?
- 兄弟们新问题想了好长时间没想通!!!!!!!!!!!!!!!!!!!!!!! 高手高手高高手啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 请大家推荐几个好用的在StringGrid功能基础上的Grid控件
- 这是做什么用的:HKLM\SOFTWARE\Microsoft\Cryptography\RNG\Seed
- DELPHI里如何实现分组统计?
- 问aa.saveas(sdir,8)8是什么意思啊?
- 怎样改变控件的颜色
- Dll 问题 (急)帮忙啊!
- 怎么样清除image1.Canvas.DrawFocusRect(myrect)方法画的东东(在线)
- 我是菜鸟!请高手回答我的菜鸟问题。什么是句柄?
谢谢
一定多给你几分
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. BOOL PtInRect(
CONST RECT *lprc, // rectangle
POINT pt // point
);
Parameters
lprc
[in] Pointer to a RECT structure that contains the specified rectangle.
pt
[in] Specifies a POINT structure that contains the specified point.
Return Values
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.
else mypoint不在myrect里