🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2641

Re: LB_ADDSTRING Redrawing

#2641
From: Steven Nelson
Date: Sat, 09 Jan 1993 08:36
15 lines
1131 bytes
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
Technical Details
Message-ID: <1993Jan9.083635.13616@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!steven
References: <1993Jan9.011837.22185@delfin.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!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