TFMXWindowParent.Reparent calls SetWindowLong but it should call SetWindowLongPtr.
I think with current Delphi releases this is already fixed by SetWindowLong being redirected to SetWindowLongPtr though, so it's not a huge deal.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
TFMXWindowParent.Reparent calls SetWindowLong instead of SetWindowLongPtr
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: TFMXWindowParent.Reparent calls SetWindowLong instead of SetWindowLongPtr
Thanks for reporting this!
Since that code is in the Firemonkey components I guess we dodged that bullet.
If someone knows the first Delphi version that started redirecting SetWindowLong to SetWindowLongPtr I will add a conditional directive to fix this issue in previous versions.

Since that code is in the Firemonkey components I guess we dodged that bullet.
If someone knows the first Delphi version that started redirecting SetWindowLong to SetWindowLongPtr I will add a conditional directive to fix this issue in previous versions.