Code: Select all
X := lParam & 0xFFFF
Y := lParam >> 16
Code: Select all
X := lParam & 0xFFFF
Y := lParam >> 16
Yes, because the example was added in 2005, when only one monitor was usually used and therefore negative coordinates were irrelevant. If you want this example to take this into account, you need to make a specific suggestion for improvement, as the example itself is not wrong.OnMessage example doesn't support negative x, y coordinates
Code: Select all
X := lParam << 48 >> 48
Y := lParam << 32 >> 48
Return to “Suggestions on Documentation Improvements”
Users browsing this forum: No registered users and 2 guests