home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-