Article View: comp.os.ms-windows.programmer.misc
Article #2644Re: LB_ADDSTRING Redrawing
From: Chris Marriott
Date: Sat, 09 Jan 1993 02:27
Date: Sat, 09 Jan 1993 02:27
23 lines
1595 bytes
1595 bytes
In article <1993Jan9.011837.22185@delfin.com> dan@delfin.com 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. > > Send the listbox a WM_SETREDRAW, FALSE message. Add all the strings except the last one. Send WM_SETREDRAW, TRUE. Add the last string. -- -------------------------------------------------------------------------- | Chris Marriott | chris@chrism.demon.co.uk | | Warrington, UK | BIX: cmarriott | | (Still awaiting inspiration | CIX: cmarriott | | for a witty .sig .... ) | CompuServe: 100113,1140 | --------------------------------------------------------------------------
Technical Details
Message-ID:
<726546452snz@chrism.demon.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chrisReferences:
<1993Jan9.011837.22185@delfin.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc From: chris@chrism.demon.co.uk (Chris Marriott) Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris Subject: Re: LB_ADDSTRING Redrawing Distribution: world References: <1993Jan9.011837.22185@delfin.com> Organization: None Reply-To: chris@chrism.demon.co.uk X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19) Lines: 23 Date: Sat, 9 Jan 1993 02:27:32 +0000 Message-ID: <726546452snz@chrism.demon.co.uk> Sender: usenet@demon.co.uk