home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4784 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!steven
  3. From: steven@netcom.com (Steven Nelson)
  4. Subject: Re: LB_ADDSTRING Redrawing
  5. Message-ID: <1993Jan9.083635.13616@netcom.com>
  6. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  7. References: <1993Jan9.011837.22185@delfin.com>
  8. Date: Sat, 9 Jan 1993 08:36:35 GMT
  9. Lines: 16
  10.  
  11. In article <1993Jan9.011837.22185@delfin.com> dan@delfin.com (Dan Stickel) writes:
  12. >I have created an owner draw listbox.  Is there any way to prevent
  13. >the listbox from redrawing all visible items when it scrolls one line 
  14. >after receiving an LB_ADDSTRING message?  Without the LB_ADDSTRING,
  15. >scrolling only redraws the newly visible item, doing a quick bitmap
  16. >shift of the other items.
  17. >
  18. >I have tried everything I could think of.  At this point, it seems
  19. >to me that there is no way to avoid it.
  20. >
  21.  
  22. Try using the WM_SETREDRAW message if the list box needs to update all 
  23. elements in the list.  This will cause the list to be only painted once.
  24.  
  25. steven@netcom.com
  26.  
  27.