FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FUNCTION ScreenHeight() when automatic hide Taskbar
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
FUNCTION ScreenHeight() when automatic hide Taskbar
Posted: Sat Jul 23, 2022 05:22 AM
hi,

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

so i wrote this
Code (fw): Select all Collapse
#define DESKTOPVERTRES       0x0075
#define DESKTOPHORZRES       0x0076

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

Jimmy
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FUNCTION ScreenHeight() when automatic hide Taskbar
Posted: Sat Jul 23, 2022 02:47 PM

Dear Jimmy,

very good!

many thanks for sharing it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion