mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 18:54:25 +00:00
[RAPPS]
- disable redrawing while the application list is being updated (suggested by Christoph) svn path=/trunk/; revision=66819
This commit is contained in:
parent
9d069a334c
commit
6f1802eece
|
@ -196,6 +196,8 @@ UpdateApplicationsList(INT EnumType)
|
||||||
HICON hIcon;
|
HICON hIcon;
|
||||||
HIMAGELIST hImageListView;
|
HIMAGELIST hImageListView;
|
||||||
|
|
||||||
|
SendMessage(hListView, WM_SETREDRAW, FALSE, 0);
|
||||||
|
|
||||||
(VOID) ListView_DeleteAllItems(hListView);
|
(VOID) ListView_DeleteAllItems(hListView);
|
||||||
|
|
||||||
/* Create image list */
|
/* Create image list */
|
||||||
|
@ -253,6 +255,8 @@ UpdateApplicationsList(INT EnumType)
|
||||||
/* set automatic column width for program names if the list is not empty */
|
/* set automatic column width for program names if the list is not empty */
|
||||||
if (ListView_GetItemCount(hListView) > 0)
|
if (ListView_GetItemCount(hListView) > 0)
|
||||||
ListView_SetColumnWidth(hListView, 0, LVSCW_AUTOSIZE);
|
ListView_SetColumnWidth(hListView, 0, LVSCW_AUTOSIZE);
|
||||||
|
|
||||||
|
SendMessage(hListView, WM_SETREDRAW, TRUE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue