>Never mind I found it??
>Sysmetric(1)
>Sysmetric(2)
No, unfortunately you couldn't :( I also thought they were returning correct values but they don't. Try this (win2000 RC2, vfp6 sp3, S3 trio3d2x AGP - probably related with my video card and might not happen there) :
-Set screen resolution to something like 1280*1024 or 1024*768
-Launch VFP, maximize
-Go to desktop, change resolution to 800*600
-Launch "another" VFP and maximize
-Go to desktop, change resolution back to 1280*1024
-Go to 2nd VFP session - It's in 800*600 area maximized ! Restore and maximize think screen is 800*600 so do sysmetric()
I got this code from George Tasker (thanks George) and returns correct results :
#define SM_CXSCREEN 0
#define SM_CYSCREEN 1
#define SM_CXFULLSCREEN 16
#define SM_CYFULLSCREEN 17
DECLARE INTEGER GetSystemMetrics IN Win32API;
INTEGER nIndex
? GetSystemMetrics(SM_CXSCREEN)
? GetSystemMetrics(SM_CYSCREEN)
? GetSystemMetrics(SM_CXFULLSCREEN)
? GetSystemMetrics(SM_CYFULLSCREEN)
Cetin