João
Consider this code _ResMessage() called from the Activate Window code.. Seems to work fine with all Operating Systems including Windows 10 64 bit.
Rick Lipkin
//-------------------------
nSCR1 := GetSysMetrics(0) // width
nSCR2 := GetSysMetrics(1) // height
ACTIVATE WINDOW oWind ;
MAXIMIZED ;
ON INIT ( IF( nSCR1 < 1024, _ResMessage(nSCR1, nSCR2), ),_ChkOwner( oWind,cFirst)); // 560,230
ON PAINT ( IF( xTEXT = "/NL", ,PalBmpDraw( hDC, 0,0, oBmp:hBitmap, oBmp:hPalette, nSCR1, nSCR2 )),;
PalBmpDraw( hDC, _UpDown(), _RightLeft(), oBMAP:hBitmap, oBMAP:hPalette,305,191 ),;
_ChkDemo(@nTimes));
VALID ( IIF( !lExitPgm, _ExitPgm( .T. ) , .F. ))
//-----------------------------------------------
Static Func _ResMessage( nScr1,nScr2 )
LOCAL SAYING
SAYING := "It appears that your screen resolution is "+str(nSCR1,4)+"x"+STR(nSCR2,4)+" and is below"+chr(10)
SAYING += "the minimum of 1024 x 768. This is not a critical error, however you will"+chr(10)
SAYING += "find some screens and forms in this application that will be too large to fit"+chr(10)
SAYING += "on your screen... just fair warning"+chr(10)
MsgInfo( saying )
RETURN(.T.)