Code: Select all
nWidth := AppDeskTop():currentSize()[1] // current screen size width in pixels
nHeight := AppDeskTop():currentSize()[2] // current screen size height in pixels
Code: Select all
nWidth := AppDeskTop():currentSize()[1] // current screen size width in pixels
nHeight := AppDeskTop():currentSize()[2] // current screen size height in pixels
hm ... 1576 is unusualEugene Lutsenko wrote:1576 is defined. How to deal with this?Code: Select all
nWidth := AppDeskTop():currentSize()[1] // current screen size width in pixels nHeight := AppDeskTop():currentSize()[2] // current screen size height in pixels
Code: Select all
#include "dll.ch"
#define DESKTOPVERTRES 117
#define DESKTOPHORZRES 118
PROCEDURE MAIN
LOCAL hDC := GetDC(0)
LOCAL nDHORZRES := GetDeviceCaps( hDC, DESKTOPHORZRES ) // native Monitor Size !
LOCAL nDVERTRES := GetDeviceCaps( hDC, DESKTOPVERTRES ) // native Monitor Size !
? AppDesktop():Currentsize()
? nDHORZRES , nDVERTRES
ReleaseDC( 0, hDC )
WAIT
RETURN
DLLFUNCTION GetDC( nHWND ) USING STDCALL FROM USER32.DLL
DLLFUNCTION ReleaseDC( nHWND, nHDC ) USING STDCALL FROM USER32.DLL
DLLFUNCTION GetDeviceCaps( nHWND, nIndex ) USING STDCALL FROM GDI32.DLL