disable redrawing of the ListView window before updating the service list

svn path=/trunk/; revision=29497
This commit is contained in:
Christoph von Wittich 2007-10-11 10:30:43 +00:00
parent f3d656d276
commit a49156cbcc

View file

@ -235,6 +235,11 @@ RefreshServiceList(PMAIN_WND_INFO Info)
DWORD NumServices;
DWORD Index;
SendMessage (Info->hListView,
WM_SETREDRAW,
FALSE,
0);
(void)ListView_DeleteAllItems(Info->hListView);
if (GetServiceList(Info, &NumServices))
@ -331,7 +336,7 @@ RefreshServiceList(PMAIN_WND_INFO Info)
UpdateServiceCount(Info);
}
/* turn redraw flag on. It's turned off initially via the LBS_NOREDRAW flag */
/* turn redraw flag on. */
SendMessage (Info->hListView,
WM_SETREDRAW,
TRUE,