Hello Antonio,
Ownd:nvertres() and OWND:nhorzRes() are not active in fwppc.
Is there a way to know the vertical height and horizontal ?
Thanks
Richard
window resolution
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
Re: window resolution
This is a working sample:
EMG
Code: Select all | Expand
#include "Fwce.ch"
#define SM_CXSCREEN 0
#define SM_CYSCREEN 1
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
@ 1, 1 BUTTON "Show sizes";
SIZE 120, 30;
ACTION ( MSGINFO( GETSYSMETRICS( SM_CXSCREEN ) ),;
MSGINFO( GETSYSMETRICS( SM_CYSCREEN ) ) )
ACTIVATE WINDOW oWnd
RETURN NIL
EMG
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Re: window resolution
EnricoMaria wrote:This is a working sample:Code: Select all | Expand
#include "Fwce.ch"
#define SM_CXSCREEN 0
#define SM_CYSCREEN 1
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
@ 1, 1 BUTTON "Show sizes";
SIZE 120, 30;
ACTION ( MSGINFO( GETSYSMETRICS( SM_CXSCREEN ) ),;
MSGINFO( GETSYSMETRICS( SM_CYSCREEN ) ) )
ACTIVATE WINDOW oWnd
RETURN NIL
EMG
Thanks Enrico
I did not think about getsysmetrics !
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact: