Newsgroups: comp.windows.ms.programmer Path: utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau From: bonneau@hyper.hyper.com (Paul Bonneau) Subject: Re: How wide are scrollbars? Message-ID: <1991Apr17.220440.1523@hyper.hyper.com> Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,) Organization: HyperCube Inc. References: <1991Apr15.185247.17784@SanDiego.NCR.COM> Date: Wed, 17 Apr 1991 22:04:40 GMT In article <1991Apr15.185247.17784@SanDiego.NCR.COM> davel@booboo.SanDiego.NCR.COM (David Lord) writes: >When I size my child window (using MoveWindow) I want to allow for >the client area and for a scroll bar (if needed). Unfortunately I >don't see anything that gives the width of a scroll bar. Are they >always the same size? Right now I'm using the value 20 which works >on my display but I don't know if the size would vary on say an EGA >display. > You can use AdjustWindowRect(). Give it the size of the client area, and use the appropriate scroll flags (WS_HSCROLL or WS_VSCROLL). It will come back with the total size of the window to accomodate both. cheers - Paul Bonneau.