FUNCTION ScreenHeight() when automatic hide Taskbar

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

FUNCTION ScreenHeight() when automatic hide Taskbar

Post 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
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: FUNCTION ScreenHeight() when automatic hide Taskbar

Post by Antonio Linares »

Dear Jimmy,

very good!

many thanks for sharing it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply