Setting the Check-mark Attribute
The CheckMenuItem function sets a menu item's check-mark attribute to either checked or unchecked. You can specify the MF_CHECKED value to set the check-mark attribute to checked and the MF_UNCHECKED value to set it to unchecked.
You can also set the check state of a menu item by using the SetMenuItemInfo function.
Sometimes a group of menu items represents a set of mutually exclusive options. By using the CheckMenuRadioItem function, you can check one menu item while simultaneously removing the check mark from all other menu items in the group.