Consider the following scenario:
- You use Microsoft Visual Studio 2010 to develop a Microsoft Foundation Class (MFC) application that calls the CContextMenuManager::TrackPopupMenu method or the CContextMenuManager::ShowPopupMenu method.
- The menu that corresponds to the HMENU parameter has one or more submenus.
- One or more of the submenu items have the MF_CHECKED flag set.
- You run the MFC application.