home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!steven
- From: steven@netcom.com (Steven Nelson)
- Subject: Re: LB_ADDSTRING Redrawing
- Message-ID: <1993Jan9.083635.13616@netcom.com>
- Organization: Netcom Online Communications Services (408-241-9760 login: guest)
- References: <1993Jan9.011837.22185@delfin.com>
- Date: Sat, 9 Jan 1993 08:36:35 GMT
- Lines: 16
-
- In article <1993Jan9.011837.22185@delfin.com> dan@delfin.com (Dan Stickel) writes:
- >I have created an owner draw listbox. Is there any way to prevent
- >the listbox from redrawing all visible items when it scrolls one line
- >after receiving an LB_ADDSTRING message? Without the LB_ADDSTRING,
- >scrolling only redraws the newly visible item, doing a quick bitmap
- >shift of the other items.
- >
- >I have tried everything I could think of. At this point, it seems
- >to me that there is no way to avoid it.
- >
-
- Try using the WM_SETREDRAW message if the list box needs to update all
- elements in the list. This will cause the list to be only painted once.
-
- steven@netcom.com
-
-