Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: