On windows (windows only, use IFDEF) also WM_NCMOUSEMOVE
That is used, if the mouse is over the window border, or if the form itself has scrollbars, over the scrollbar....
To test, if it is over your windows
if PtInRect(form.BoundsRect, Mouse.CursorPos) then