Now, you can do this for all four menu items, and you can ...

An alternative would be to remove the unavailable item entirely from the menu. ... Detach Detaches a Windows menu handle from a CMenu object and returns the handle. FromHandle Returns a pointer to a CMenu object given a Windows menu handle. ... you can do this for all four menu items, and you can also add a function for UPDATE_COMMAND_UI Author ... ................
................