i950
asked on
Preventing listView from flickering
Hello,
I'm adding a lot of items to a listView in a loop.
How can I prevent it from flickering?
Thank you.
I'm adding a lot of items to a listView in a loop.
How can I prevent it from flickering?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
LockWindowUpdate(Listbox.h andle); // from GDI use PInvoke
....
update
.....
LockWindowUpdate( NULL );
....
update
.....
LockWindowUpdate( NULL );
Resume or PerformLayout()
DoubleBuffered = true or
SetStyle() and check for ControlStyles that may help (AllPaintingInWmPaint, OptimizedDoubleBuffer )