>Thanks for the suggestion -- just got the running with call to DwmGetWindowAttribute(), now going over the results to make sense of it all. Do you recall if there is anything that returns the height of the status bar (the one in VFP main window)? Did notice that it appears to be 24 pixels in height, but not sure if it's always that height or not (haven't checked to see if it varies with DPI setting for display).
Hi Naoto,
I dunno if there's some WIn API that will tell you that. Try this
lnHeight2 = _VFP.Height - _SCREEN.Height
SET STATUS BAR OFF
lnHeight1 = _VFP.Height - _SCREEN.Height
SET STATUS BAR ON
? lnHeight2 - lnHeight1
--sb--