Adds the selected states to menu items
Id of the menu widget
Zero-based index of the active menu item
Zero-based index of the active submenu item
Adds the selected states to menu items