🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #549

Re: Creating windows with a specified client size

#549
From: Mike Deem
Date: Fri, 09 Nov 1990 15:56
15 lines
1144 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.

You want the AdjustWindowRect function. You give it a RECT structure with
your desired client size, the style of your frame rectangle, and a flag 
indicating if you have a menu and it will adjust the RECT structure to 
include those frame controls.

Hope this helps.

Mike Deem
Technical Details
Message-ID: <1101@banyan.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!m2c!jjmhome!banyan!miked
References: <18647@haddock.ima.isc.com> <1990Nov8.180215.10952@rti.rti.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!m2c!jjmhome!banyan!miked
From: miked@banyan.UUCP (Mike Deem@Eng@Banyan)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Creating windows with a specified client size
Message-ID: <1101@banyan.UUCP>
Date: 9 Nov 90 15:56:37 GMT
References: <18647@haddock.ima.isc.com> <1990Nov8.180215.10952@rti.rti.org>
Reply-To: miked@banyan.UUCP (Mike Deem@Eng@Banyan)
Organization: Banyan Systems, Inc.
Lines: 14