Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 29 of file listview.c.
Referenced by MainWndProc().
{ HMENU hMainMenu; /* get handle to menu */ hMainMenu = GetMenu(Info->hMainWnd); /* activate properties menu item, if not already */ if (GetMenuState(hMainMenu, ID_PROP, MF_BYCOMMAND) != MF_ENABLED) { EnableMenuItem(hMainMenu, ID_PROP, MF_ENABLED); EnableMenuItem(GetSubMenu(Info->hShortcutMenu, 0), ID_PROP, MF_ENABLED); SetMenuDefaultItem(GetSubMenu(Info->hShortcutMenu, 0), ID_PROP, MF_BYCOMMAND); } /* activate delete menu item, if not already */ if (GetMenuState(hMainMenu, ID_DELETE, MF_BYCOMMAND) != MF_ENABLED) { EnableMenuItem(hMainMenu, ID_DELETE, MF_ENABLED); EnableMenuItem(GetSubMenu(Info->hShortcutMenu, 0), ID_DELETE, MF_ENABLED); } /* set selected service */ Info->SelectedItem = pnmv->iItem; /* get pointer to selected service */ Info->pCurrentService = GetSelectedService(Info); /* set current selected service in the status bar */ SendMessage(Info->hStatus, SB_SETTEXT, 1, (LPARAM)Info->pCurrentService->lpDisplayName); /* show the properties button */ SendMessage(Info->hTool, TB_SETSTATE, ID_PROP, (LPARAM)MAKELONG(TBSTATE_ENABLED, 0)); }