home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: 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
-
- 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
-
-