![]() |
![]() |
![]() |
Prevent a window from repainting |
|||
|
Steve McMahon(steve@vbaccelerator.com) |
![]() |
||
|
![]() |
|||
|
01/08/98 |
![]() |
||
Other Tips |
This tip show show to prevent an area of a window from repainting. When you have
a lot of items to add to a control, such as a ListBox or ListView, this can
considerably speed up the process. On my system, it speeds up adding
10,000 items to a List Box by over 30%.
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long When you click on the command button, the code will add 10,000 items to the List Box. If the Lock Update check box is checked, windows will prevent any redrawing of the List Box whilst the items are added. |
|||
  |
Related Tips and Articles: |
|
![]() |
  |
![]() |
|
About Contribute Send Feedback Privacy
|