Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!plx!johnc From: johnc@plx.UUCP (John C.) Newsgroups: comp.windows.ms.programmer Subject: Re: Creating window w/specific client size Keywords: AdjustWindowRect Message-ID: <2509@plx.UUCP> Date: 9 Nov 90 18:44:25 GMT Organization: Plexus Computers, San Jose, CA. Lines: 15 You can easily determine the window-rect size for a given client size. Use AdjustWindowRect: void AdjustWindowRect( lpRect, lStyle, bMenu ) The lStyle specifies the non-client stuff the window will have; the function presumably looks at this and gets the system metrics to do the adjustment. The bMenu tells it whether to also adjust for a menu. -- John Ciccarelli Plexus Software, 5200 Great America Pkwy, Suite 200, Santa Clara CA 95054 email: ...sun!plx!johnc, voice: 408-982-4842, fax: 408-727-4864