mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
disable redrawing of the ListView window before updating the service list
svn path=/trunk/; revision=29497
This commit is contained in:
parent
f3d656d276
commit
a49156cbcc
1 changed files with 6 additions and 1 deletions
|
@ -235,6 +235,11 @@ RefreshServiceList(PMAIN_WND_INFO Info)
|
||||||
DWORD NumServices;
|
DWORD NumServices;
|
||||||
DWORD Index;
|
DWORD Index;
|
||||||
|
|
||||||
|
SendMessage (Info->hListView,
|
||||||
|
WM_SETREDRAW,
|
||||||
|
FALSE,
|
||||||
|
0);
|
||||||
|
|
||||||
(void)ListView_DeleteAllItems(Info->hListView);
|
(void)ListView_DeleteAllItems(Info->hListView);
|
||||||
|
|
||||||
if (GetServiceList(Info, &NumServices))
|
if (GetServiceList(Info, &NumServices))
|
||||||
|
@ -331,7 +336,7 @@ RefreshServiceList(PMAIN_WND_INFO Info)
|
||||||
UpdateServiceCount(Info);
|
UpdateServiceCount(Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* turn redraw flag on. It's turned off initially via the LBS_NOREDRAW flag */
|
/* turn redraw flag on. */
|
||||||
SendMessage (Info->hListView,
|
SendMessage (Info->hListView,
|
||||||
WM_SETREDRAW,
|
WM_SETREDRAW,
|
||||||
TRUE,
|
TRUE,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue