[comp.windows.ms.programmer] Creating window w/specific client size

johnc@plx.UUCP (John C.) (11/10/90)

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