🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2126

How do you scroll (part of a) window??

#2126
From: Richard Swent
Date: Wed, 18 Nov 1992 20:47
15 lines
1152 bytes
I can't figure out how to implement scrolling in a sensible
manner. I want to have a window that has some header information
and some buttons at the top, then a long list below that can
be scrolled via a scroll bar. The part of the window that scrolls
can be a child window if that is easier. 

I've looked at the scrolling functions (ScrollWindow, ScrollDC) and
can't make them work right. If I use ScrollWindow it scrolls the
bitmap but as soon as my Paint procedure is called, it paints stuff
just the way it had been. I tried ScrollDC and it didn't do anything
at all. The problem is really my Paint procedure which doesn't know
anything about the scrolling. What is the "right" way to do this?

Thanks in advance,
Rich
Technical Details
Message-ID: <1992Nov18.204742.9936@leland.Stanford.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!rlswent

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!rlswent
From: rlswent@leland.Stanford.EDU (Richard Swent)
Subject: How do you scroll (part of a) window??
Message-ID: <1992Nov18.204742.9936@leland.Stanford.EDU>
Sender: news@leland.Stanford.EDU (Mr News)
Organization: DSG, Stanford University, CA 94305, USA
Date: Wed, 18 Nov 92 20:47:42 GMT
Lines: 16