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