2 ms·
In Delphi the Windows types are declared as-is, ie with all caps, but then most of them are aliased to more Pascal-like names. So you can use TRect and TPoint
by magicalhippo 2y ago
In Delphi the Windows types are declared as-is, ie with all caps, but then most of them are aliased to more Pascal-like names.
So you can use TRect and TPoint and pass those to PtInRect[1] which expects RECT and POINT respectively.
[1]: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-ptinrect https://learn.microsoft.com/en-us/windows/win32/api/winuser/...