FUNCTION ScreenHeight() when automatic hide Taskbar

FUNCTION ScreenHeight() when automatic hide Taskbar

Postby Jimmy » Sat Jul 23, 2022 5:22 am

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 view  RUN
#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
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FUNCTION ScreenHeight() when automatic hide Taskbar

Postby Antonio Linares » Sat Jul 23, 2022 2:47 pm

Dear Jimmy,

very good!

many thanks for sharing it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 38 guests