I'm updating a ListView which contains about 150 items. The update requires me to completely repopulate the entire ListView. The problem is, it takes ages and looks disgusting when the items are deleted and re-added. I've played around with LockWindowUpdate, and that works fine with the ListView, but my desktop refreshes when I release the lock.
Here's my code:
Is this correct? If so, why does the desktop refresh?
This has happened to me on 98SE, 2000 and XP. I haven't tried it on any other versions of Windows.