如何快速判断一个点(TPoint)在范围(TRect)中? ( 积分: 50 )

  • 主题发起人 主题发起人 Hydra0
  • 开始时间 开始时间
H

Hydra0

Unregistered / Unconfirmed
GUEST, unregistred user!
RT
我目前是判断
(X in [Left..Right]) and (Y in [Top..Bottom])
有没有别的办法?
 
function PtInRect(const lprc: TRect; pt: TPoint): BOOL; stdcall;
 
if PtInRect(YourRect, YourPoint) then
///
 
多人接受答案了。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
503
import
I
后退
顶部