I am curious how Delphi handles this (Setting window position to 0/0) on Windows 10.
Will there be a visible gap of 7 pixels to left of the window?
Yes there is.
Good to know! which is the Delphi version used?
Delphi 10.1 Berlin on Windows 10 Pro 64 bit.
B.T.W. for setting winver=6 you need to set the MajorSubsystemVersion, not the MajorOperatingSystemVersion, in the IMAGE_OPTIONAL_HEADER flags to 6. In Delphi you can do this by adding {$SETPESUBSYSVERSION 6.0}
( for MajorSubsystemVersion it would be {$SETPEOSVERSION 6.0} )
But both have no effect on Windows 10.
(I checked with
PEview that the PE-flags where really set correctly.)