Description
LongInt(@r) truncates 64-bit pointers to 32-bit, causing ACCESS_VIOLATION
when clicking grid cells or using edit controls on Win64.
Changed LongInt to LPARAM which is the correct Windows API type for
SendMessage's lParam parameter (32-bit on Win32, 64-bit on Win64).
How to test
Compile a project for 64-bit
TBoldGrid: For any editable cell in TBoldGrid click to edit value
TBoldEdit: Use ButtonStyle bbsEllipsis. Click on ... in runtime