Page 1 of 1

FUNCTION ScreenHeight() when automatic hide Taskbar

Posted: Sat Jul 23, 2022 5:22 am
by Jimmy
hi,

to use "full" Desktop Size i "automatic" hide Taskbar
but than FUNCTION ScreenHeight() give to small Height :shock:

so i wrote this

Code: Select all | Expand

#define DESKTOPVERTRES       0x0075
#define DESKTOPHORZRES       0x0076

FUNCTION ScreenHeightNative()
LOCAL hDC, nHeight
   hDC := GetDC( 0 )
   nHeight := GetDeviceCaps( hDC, DESKTOPVERTRES )
   ReleaseDC( 0, hDC )
RETURN nHeight

Re: FUNCTION ScreenHeight() when automatic hide Taskbar

Posted: Sat Jul 23, 2022 2:47 pm
by Antonio Linares
Dear Jimmy,

very good!

many thanks for sharing it :-)