Delphi Mouse.curpos appears to be returning incorrect coordinates
问题 I have a VCL form application with a tedit that will use FindVCLWindow (Mouse.CursorPos) to act upon a the control if it is beneath the mouse. When I left click on the tedit, my program returns nil for the result and the reason appears to be the mouse.curpos sent in the function. In my test I used a form size of 500+ x 500+ and located it at screen coordinates 100,100. The Tedit is located at 100,100 and is sized and displayed at 100,50. When I point at the edit, the mouse.curpos is returned