🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #6315

Re: Creating windows with a specified client size

#6315
From: Paul Gyugyi
Date: Sat, 27 Oct 1990 06:26
21 lines
1196 bytes
In article <18647@haddock.ima.isc.com> andya@haddock.ima.isc.com (Andy Adler) writes:
>Is there a way to create a window by specifying the window's
>client area?  Is there a way to query windows about the
>size of the decorations it will add to a window?  I want to 
>be able to create a window and know what the client area will
>be before showing it.
>
>aa

If there is a better way to do this, I'd like to know about it.
The following worked for me in Actor:
1) Set the size of the window to what you want the client size to be.
2) Get the client size of the window
3) Subtract the difference, and set the size of the window to a bigger size.
4) show the window.

The above are simple Actor calls.  I imagine that they have simple SDK
versions.

Paul Gyugyi
gyugyi@rascals.stanford.edu
Technical Details
Message-ID: <1990Oct27.062630.19404@portia.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!shelby!portia.stanford.edu!gyugyi
References: <18647@haddock.ima.isc.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!shelby!portia.stanford.edu!gyugyi
From: gyugyi@portia.Stanford.EDU (Paul Gyugyi)
Newsgroups: comp.windows.ms
Subject: Re: Creating windows with a specified client size
Message-ID: <1990Oct27.062630.19404@portia.Stanford.EDU>
Date: 27 Oct 90 06:26:30 GMT
References: <18647@haddock.ima.isc.com>
Organization: AIR, Stanford University
Lines: 21