🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Scroll Bars in Child Windows

#2852
From: Barry Press
Date: Sun, 26 May 1991 01:00
17 lines
1176 bytes
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.

This is, of course, not terribly useful, as the SB_* type information doesn't
seem to be present.  I checked everywhere I could think of in volume 1 of
the SDK reference, in the guide to programming, and in Petzold.  No joy.

Has anyone experience with scroll bars in child windows?  Is there a way to
do something useful with the resulting WM_SYSCOMMAND?

Thanks.


-- 
Barry Press                                 Internet: press@venice.sedd.trw.com
Technical Details
Message-ID: <1109@venice.SEDD.TRW.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!trwind!venice!press

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!trwind!venice!press
From: press@venice.SEDD.TRW.COM (Barry Press)
Newsgroups: comp.windows.ms.programmer
Subject: Scroll Bars in Child Windows
Message-ID: <1109@venice.SEDD.TRW.COM>
Date: 26 May 91 01:00:17 GMT
Reply-To: press@venice.sedd.trw.com (Barry Press)
Organization: TRW Systems Engineering & Development Division, Redondo Beach, CA
Lines: 17