tristate menu item
-
When one creates a drop down menu using the resource editor, it is possible to specify that a menu item is "checked", allowing one to have a check mark appear (or not) on the item when the menu is dropped down. I would like a tri-state check mark. The check mark is either present, not present, or "greyed". If I call pCmdUI->SetCheck(2), where pCmdUI is the CCmdUI* pointer passed to the "UI Update method", it causes the check mark to be drawn just as passing the value 1 would. The documentation indicates that the value 2 indicates an indeterminate state (the tristate). Do I need to somehow intercept the menu being activated, and then change some kind of style mask on the menu items? Any suggestions or example code would be appreciated. Thanks