home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!mcsun!fuug!kiae!sensor!news-server
- From: ksa@org.sensor.zgrad.su (Sergey A. Krasnov)
- Subject: Re: Why is inserting text into an edit control so slow? Must it be?
- Message-ID: <AA7hlRgSo4@org.sensor.zgrad.su>
- Lines: 18
- Sender: news-server@sensor.zgrad.su
- Reply-To: ksa@org.sensor.zgrad.su
- Organization: Firm Sensor, ORG department. Zelenograd, Russia
- References: <1992Jul22.003755.3618@franz.com>
- Date: Thu, 23 Jul 92 22:30:31 +0400
-
- Adam Dingle writes
-
- > 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...............
-
- Send messsage WM_SETREDRAW with wParam = 0 to edit control
- before inserting test and WM_SETREDRAW with wParam = 1 after.
- Then redraw control - InvalidateRect(hWnd, NULL, TRUE).
-
-
- --
- Sergey Krasnov
-
- Firm "Sensor", Zelenograd, Russia | Phone: +7 (095) 5325633, 5329090
- Internet, Relcom: ksa@sensor.zgrad.su | Fax: +7 (095) 5366927
-
-