From 1f8f0bae7c85260801bcb43c997ea9c545c1a76c Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 7 Dec 2015 18:19:05 +0000 Subject: [PATCH] [SERVMAN] Arrange large and small icons after changing the view. Patch by Carlo Bramini. #CORE-10350 #resolve #comment Thanks a lot! svn path=/trunk/; revision=70288 --- reactos/base/applications/mscutils/servman/mainwnd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/base/applications/mscutils/servman/mainwnd.c b/reactos/base/applications/mscutils/servman/mainwnd.c index 940ab7ef4be..df4dbcfb4d9 100644 --- a/reactos/base/applications/mscutils/servman/mainwnd.c +++ b/reactos/base/applications/mscutils/servman/mainwnd.c @@ -558,8 +558,9 @@ MainWndCommand(PMAIN_WND_INFO Info, break; case ID_VIEW_LARGE: - SetListViewStyle(Info->hListView, - LVS_ICON); + SetListViewStyle(Info->hListView, LVS_ICON); + ListView_Arrange(Info->hListView, LVA_DEFAULT); + CheckMenuRadioItem(GetMenu(Info->hMainWnd), ID_VIEW_LARGE, ID_VIEW_DETAILS, @@ -568,8 +569,9 @@ MainWndCommand(PMAIN_WND_INFO Info, break; case ID_VIEW_SMALL: - SetListViewStyle(Info->hListView, - LVS_SMALLICON); + SetListViewStyle(Info->hListView, LVS_SMALLICON); + ListView_Arrange(Info->hListView, LVA_DEFAULT); + CheckMenuRadioItem(GetMenu(Info->hMainWnd), ID_VIEW_LARGE, ID_VIEW_DETAILS,