home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3526 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!rlswent
  3. From: rlswent@leland.Stanford.EDU (Richard Swent)
  4. Subject: How do you scroll (part of a) window??
  5. Message-ID: <1992Nov18.204742.9936@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: DSG, Stanford University, CA 94305, USA
  8. Date: Wed, 18 Nov 92 20:47:42 GMT
  9. Lines: 16
  10.  
  11. I can't figure out how to implement scrolling in a sensible
  12. manner. I want to have a window that has some header information
  13. and some buttons at the top, then a long list below that can
  14. be scrolled via a scroll bar. The part of the window that scrolls
  15. can be a child window if that is easier. 
  16.  
  17. I've looked at the scrolling functions (ScrollWindow, ScrollDC) and
  18. can't make them work right. If I use ScrollWindow it scrolls the
  19. bitmap but as soon as my Paint procedure is called, it paints stuff
  20. just the way it had been. I tried ScrollDC and it didn't do anything
  21. at all. The problem is really my Paint procedure which doesn't know
  22. anything about the scrolling. What is the "right" way to do this?
  23.  
  24. Thanks in advance,
  25. Rich
  26.  
  27.