🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2890

Re: Scroll Bars in Child Windows

#2890
From: Paul Bonneau
Date: Tue, 28 May 1991 19:39
17 lines
1230 bytes
In article <1109@venice.SEDD.TRW.COM> press@venice.sedd.trw.com (Barry Press) writes:
>I've setup a child window with a horizontal scroll bar, and am now trying to
>make the scroll bar do something.  Unfortunately, what I get are not
>WM_HSCROLL messages to the child window, but WM_SYSCOMMAND messages with
>wParam set to SC_HSCROLL.  lParam appears to be the mouse coordinates.
>
I would guess that you are not calling DefWindowProc() when
you get the WM_SYSCOMMAND message.  It think he generates a
WM_HSCROLL message in response.

If all else fails, you can try creating a child ScrollBar
control from within your child window.  The difference is not
much, just an extra call to CreateWindow() instead of using
the WS_HSCROLL style (and getting a non-client area ScrollBar
as a result).

cheers - Paul Bonneau.
Technical Details
Message-ID: <1991May28.193958.9492@hyper.hyper.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
References: <1109@venice.SEDD.TRW.COM>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
From: bonneau@hyper.hyper.com (Paul Bonneau)
Subject: Re: Scroll Bars in Child Windows
Message-ID: <1991May28.193958.9492@hyper.hyper.com>
Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,)
Organization: HyperCube Inc.
References: <1109@venice.SEDD.TRW.COM>
Date: Tue, 28 May 1991 19:39:58 GMT