Author: ekohl
Date: Sun Jul 29 00:03:06 2007
New Revision: 27973
URL:
http://svn.reactos.org/svn/reactos?rev=27973&view=rev
Log:
Check the menu items in the view submenu according to the selected type of view.
Modified:
trunk/reactos/base/applications/mscutils/servman/mainwnd.c
Modified: trunk/reactos/base/applications/mscutils/servman/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/mainwnd.c (original)
+++ trunk/reactos/base/applications/mscutils/servman/mainwnd.c Sun Jul 29 00:03:06 2007
@@ -396,6 +396,13 @@
(void)ListView_InsertColumn(Info->hListView,
4,
&lvc);
+
+ /* check the details view menu item */
+ CheckMenuRadioItem(GetMenu(Info->hMainWnd),
+ ID_VIEW_LARGE,
+ ID_VIEW_DETAILS,
+ ID_VIEW_DETAILS,
+ MF_BYCOMMAND);
return TRUE;
}
@@ -659,21 +666,41 @@
case ID_VIEW_LARGE:
SetListViewStyle(Info->hListView,
LVS_ICON);
+ CheckMenuRadioItem(GetMenu(Info->hMainWnd),
+ ID_VIEW_LARGE,
+ ID_VIEW_DETAILS,
+ ID_VIEW_LARGE,
+ MF_BYCOMMAND);
break;
case ID_VIEW_SMALL:
SetListViewStyle(Info->hListView,
LVS_SMALLICON);
+ CheckMenuRadioItem(GetMenu(Info->hMainWnd),
+ ID_VIEW_LARGE,
+ ID_VIEW_DETAILS,
+ ID_VIEW_SMALL,
+ MF_BYCOMMAND);
break;
case ID_VIEW_LIST:
SetListViewStyle(Info->hListView,
LVS_LIST);
+ CheckMenuRadioItem(GetMenu(Info->hMainWnd),
+ ID_VIEW_LARGE,
+ ID_VIEW_DETAILS,
+ ID_VIEW_LIST,
+ MF_BYCOMMAND);
break;
case ID_VIEW_DETAILS:
SetListViewStyle(Info->hListView,
LVS_REPORT);
+ CheckMenuRadioItem(GetMenu(Info->hMainWnd),
+ ID_VIEW_LARGE,
+ ID_VIEW_DETAILS,
+ ID_VIEW_DETAILS,
+ MF_BYCOMMAND);
break;
case ID_VIEW_CUST: