Path: 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 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