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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: LB_ADDSTRING Redrawing 
  5. Distribution: world
  6. References: <1993Jan9.011837.22185@delfin.com>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 23
  11. Date: Sat, 9 Jan 1993 02:27:32 +0000
  12. Message-ID: <726546452snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1993Jan9.011837.22185@delfin.com> dan@delfin.com writes:
  16.  
  17. >I have created an owner draw listbox.  Is there any way to prevent
  18. >the listbox from redrawing all visible items when it scrolls one line 
  19. >after receiving an LB_ADDSTRING message?  Without the LB_ADDSTRING,
  20. >scrolling only redraws the newly visible item, doing a quick bitmap
  21. >shift of the other items.
  22. >
  23. >I have tried everything I could think of.  At this point, it seems
  24. >to me that there is no way to avoid it.
  25. >
  26. >
  27.  
  28. Send the listbox a WM_SETREDRAW, FALSE message.  Add all the strings
  29. except the last one.  Send WM_SETREDRAW, TRUE.  Add the last string.
  30. -- 
  31. --------------------------------------------------------------------------
  32. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  33. | Warrington, UK                           | BIX: cmarriott              |
  34. | (Still awaiting inspiration              | CIX: cmarriott              |
  35. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  36. --------------------------------------------------------------------------
  37.  
  38.