mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
Check the menu items in the view submenu according to the selected type of view.
svn path=/trunk/; revision=27973
This commit is contained in:
parent
3b5160fc40
commit
2f450a8880
|
@ -397,6 +397,13 @@ CreateListView(PMAIN_WND_INFO Info)
|
|||
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 @@ MainWndCommand(PMAIN_WND_INFO Info,
|
|||
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:
|
||||
|
|
Loading…
Reference in a new issue