home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3550 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.5 KB

  1. Path: sparky!uunet!utcsri!skule.ecf!torn!nott!cunews!revcan!software.mitel.com!kim!kim
  2. From: kim@Software.Mitel.COM (Kim Letkeman)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: How do you scroll (part of a) window??
  5. Message-ID: <KIM.92Nov19091910@kim.Software.Mitel.COM>
  6. Date: 19 Nov 92 14:19:10 GMT
  7. References: <1992Nov18.204742.9936@leland.Stanford.EDU>
  8. Sender: kim@Software.Mitel.COM
  9. Organization: MITEL Public Switching, Kanata, Ontario, Canada
  10. Lines: 19
  11. In-reply-to: rlswent@leland.Stanford.EDU's message of 18 Nov 92 20:47:42 GMT
  12.  
  13. In article <1992Nov18.204742.9936@leland.Stanford.EDU> rlswent@leland.Stanford.EDU (Richard Swent) writes:
  14.  
  15. | I can't figure out how to implement scrolling in a sensible
  16. | manner. I want to have a window that has some header information
  17. | and some buttons at the top, then a long list below that can
  18. | be scrolled via a scroll bar. The part of the window that scrolls
  19. | can be a child window if that is easier. 
  20. | I've looked at the scrolling functions (ScrollWindow, ScrollDC) and
  21. | can't make them work right. If I use ScrollWindow it scrolls the
  22. | bitmap but as soon as my Paint procedure is called, it paints stuff
  23. | just the way it had been. I tried ScrollDC and it didn't do anything
  24. | at all. The problem is really my Paint procedure which doesn't know
  25. | anything about the scrolling. What is the "right" way to do this?
  26.  
  27. This is one of the areas that Petzold handles very well IMO. Read that
  28. section of the book if you haven't already.
  29. --
  30. Kim Letkeman    kim@Software.Mitel.COM
  31.