Command Bars offers toggle buttons that users can easily see when commands in your menu and toolbar are "on" or "off". When a toggle button is clicked, you only need to update the "checked" property of the control. Controls in you menu bar will have a check mark next to them and toolbar controls will appear in a "selected" state.
MenuBar Toggle Buttons
ToolBar Toggle Buttons