in your compiler options, there is a field called linker options file:
https://www.purebasic.com/documentation ... ptions.png
create a new text file and add /SUBSYSTEM:WINDOWS,6.0 to it. then select that file as your linker option file.
that will turn this: https://i.imgur.com/pdYXHCF.png
into this: https://i.imgur.com/vmxTkOy.png
both windows have the exact same coordinates, but notice how the borders and close button get cut off in the first pic?
c ya,MSFT wrote:Due to compatability requirements, certain metrics are reported in such a way that they're not consistent with what is actually drawn on the screen when Aero Glass (more accurately, "Windows Vista Aero") is enabled. This sort of approach is needed in order to change the look of the system for the vast majority of apps for which this isn't an issue.
However, there's been a recent change in the system which will be coming out in Vista RC1 that will return the correct rendered value from GetWindowRect() for executables that are linked with "winver = 6.0". This allows new and newly-linked applications to get the "correct" values from GetWindowRect().
nco2k