- disable redrawing while the application list is being updated (suggested by Christoph)

svn path=/trunk/; revision=66819
This commit is contained in:
Kamil Hornicek 2015-03-19 20:19:27 +00:00
parent 9d069a334c
commit 6f1802eece

View file

@ -196,6 +196,8 @@ UpdateApplicationsList(INT EnumType)
HICON hIcon;
HIMAGELIST hImageListView;
SendMessage(hListView, WM_SETREDRAW, FALSE, 0);
(VOID) ListView_DeleteAllItems(hListView);
/* Create image list */
@ -253,6 +255,8 @@ UpdateApplicationsList(INT EnumType)
/* set automatic column width for program names if the list is not empty */
if (ListView_GetItemCount(hListView) > 0)
ListView_SetColumnWidth(hListView, 0, LVSCW_AUTOSIZE);
SendMessage(hListView, WM_SETREDRAW, TRUE, 0);
}
VOID