TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Edwin Groothuis
from: Erik Schumacher
date: 1995-06-26 17:42:30
subject: Clearing a listbox fast.

Hallo Edwin!

 EG> When trying to empty a rather large listbox by called
 EG> WinDeleteLboxItem() (or something...) it takes quite some time. Is there
 EG> a way to clear the whole listbox at once?

Try this:

WinSendDlgItemMsg (hwnd,
          ID_Listbox,
          LM_DELETEALL, <---- look here !
          NULL,
          NULL);


You can also use WinSendMsg().

Servus, Erik!

    # CompuServe : 100341,261
    # InterNet   : 100341.261{at}compuserve.com

--- FleetStreet 1.04.1 #603
* Origin: Coffee makes the world go round..... (2:244/1142.1)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 244/1142 1200 24/999 2/777 105/42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.