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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!fuug!kiae!sensor!news-server
  3. From:  ksa@org.sensor.zgrad.su (Sergey A. Krasnov)
  4. Subject: Re: Why is inserting text into an edit control so slow?  Must it be?
  5. Message-ID: <AA7hlRgSo4@org.sensor.zgrad.su>
  6. Lines: 18
  7. Sender: news-server@sensor.zgrad.su
  8. Reply-To: ksa@org.sensor.zgrad.su
  9. Organization: Firm Sensor, ORG department. Zelenograd, Russia
  10. References: <1992Jul22.003755.3618@franz.com>
  11. Date: Thu, 23 Jul 92 22:30:31 +0400
  12.  
  13.         Adam Dingle writes
  14.  
  15. >   I am developing an application which uses an edit control to hold textual
  16. >   output which the user can scroll and edit.  Unfortunately, inserting
  17. >   text into the edit control is intolerably slow, especially when the
  18. >   edit control occupies much of the screen...............
  19.  
  20.         Send messsage WM_SETREDRAW with wParam = 0 to edit control
  21. before inserting test and WM_SETREDRAW with wParam = 1 after.
  22. Then redraw control - InvalidateRect(hWnd, NULL, TRUE).
  23.  
  24.  
  25. -- 
  26.   Sergey Krasnov
  27.  
  28. Firm "Sensor", Zelenograd, Russia     | Phone: +7 (095) 5325633, 5329090
  29. Internet, Relcom: ksa@sensor.zgrad.su | Fax:   +7 (095) 5366927  
  30.  
  31.