home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 943 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!franz.com!adam
  3. From: adam@franz.com (Adam T. Dingle)
  4. Subject: Why is inserting text into an edit control so slow?  Must it be?
  5. Message-ID: <1992Jul22.003755.3618@franz.com>
  6. Keywords: edit text control sluggish
  7. Sender: news@franz.com
  8. Nntp-Posting-Host: akbar
  9. Organization: Franz Incorporated, Berkeley CA
  10. Date: Wed, 22 Jul 1992 00:37:55 GMT
  11. Lines: 17
  12.  
  13. I am developing an application which uses an edit control to hold textual
  14. output which the user can scroll and edit.  Unfortunately, inserting
  15. text into the edit control is intolerably slow, especially when the
  16. edit control occupies much of the screen.  I am usually performing one
  17. insertion for each line of output, and when there are dozens of lines of
  18. output, the user is forced to wait for an unacceptable length of time.
  19. Presently, I am inserting text into the edit control by sending a
  20. EM_SETSEL message to select an empty piece of text at the bottom of
  21. the edit control, then sending an EM_REPLACESEL message to replace the
  22. text.  Is there a faster way to do this, short of buffering up the
  23. lines of text myself and sending them to Windows all at once (which would
  24. be a nuisance)?  I'm sure that other people have run into this problem.
  25.  
  26. Any assistance would be greatly appreciated.  Thanks!
  27.  
  28. Adam Dingle
  29. adam@franz.com
  30.