Use class CMenu to manipulate menus and menu items on the fly. CMenu encapsulates a Windows HMENU handle and supplies member functions for working with menus.