🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#2145
From: Kim Letkeman
Date: Thu, 19 Nov 1992 14:19
19 lines
1568 bytes
In article <1992Nov18.204742.9936@leland.Stanford.EDU> rlswent@leland.Stanford.EDU (Richard Swent) writes:

| 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?

This is one of the areas that Petzold handles very well IMO. Read that
section of the book if you haven't already.
--
Kim Letkeman	kim@Software.Mitel.COM
Technical Details
Message-ID: <KIM.92Nov19091910@kim.Software.Mitel.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!skule.ecf!torn!nott!cunews!revcan!software.mitel.com!kim!kim
References: <1992Nov18.204742.9936@leland.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!skule.ecf!torn!nott!cunews!revcan!software.mitel.com!kim!kim
From: kim@Software.Mitel.COM (Kim Letkeman)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How do you scroll (part of a) window??
Message-ID: <KIM.92Nov19091910@kim.Software.Mitel.COM>
Date: 19 Nov 92 14:19:10 GMT
References: <1992Nov18.204742.9936@leland.Stanford.EDU>
Sender: kim@Software.Mitel.COM
Organization: MITEL Public Switching, Kanata, Ontario, Canada
Lines: 19
In-reply-to: rlswent@leland.Stanford.EDU's message of 18 Nov 92 20:47:42 GMT