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