Quick question:


I've got a list box that I want to fill with a bunch of data.


How do I tell the listbox not to repaint itself until all the data has been added?


MFC equivalent:

LockWindowUpdate();

//add some stuff

UnlockWindowUpdate();


Toolbook (ugh..) Equivalent:


SysLockScreen = true

//do something

SysLockScreen = false


In the MSDN libary, they just say "hide the control first", but then there's just empty space there, which looks silly.


As a side note, the flicker only shows up in Win95, not winNT...


TIA,

Ryan