FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour screen resolution
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
screen resolution
Posted: Wed Sep 02, 2009 02:41 AM

Is there a function that indicates what resolution a screen is using?

Thank you

Harvey
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: screen resolution
Posted: Wed Sep 02, 2009 06:42 AM
Hello Harvey:
hag wrote:Is there a function that indicates what resolution a screen is using?

Here you are two ways to get the screen resolution in pixels:
Code (fw): Select all Collapse
#include "FiveWin.ch"

Function Main()

   Local nWidth, nHeight, ;
         aRes := ScrResolution()

   ? nWidth  := aRes[ 1 ]
   ? nHeight := aRes[ 2 ]
   ? nWidth  := GetSysMetrics( 0 )
   ? nHeight := GetSysMetrics( 1 )

Return Nil

Best regards.

Manuel Mercado.
manuelmercado at prodigy dot net dot mx
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: screen resolution
Posted: Wed Sep 02, 2009 03:29 PM

Thanks for the help. I'll try it later today.

Thank you

Harvey

Continue the discussion