Re: window size

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 6 Sep 1999 18:40:26 +0200, Flaminio <newpow at TIN.IT> wrote:

>my problem is this:
>
>        my screen is set 800x600
>        i have opened a window (createwindow) with default
>dimensions
>(defined as CW_USEDEFAULT)
>        GetClientRect reply : 0,0,80,116
>        but the size in pixels is 590x370


Flaminio
   You can use GetWindowRect to get window's size and see if that is
   same size ( - title and frame ) as client values.
   You can set coordinates in createwindow to a known values and compare
   to screen size ratio. Use GetClientRect and see what values it returns
   when you set values ( other than default )
   Make sure that MAP MODE is set to MM_TEXT set by SetMapMode function.
   MM_TEXT should be default value for PIXELS.
   CW_USEDEFAULT is ONLY VALID if the WINDOW STYLE is set to OVERLAPPED.

   Hope that this helps you
Bernie

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu