https://msdn.microsoft.com/en-us/library/aa241093(v=vs.60).aspx | How Do I | https://msdn.microsoft.com/en-us/library/f35t8fts(v=vs.60).aspx | https://msdn.microsoft.com/en-us/library/aa716433(v=vs.60).aspx
MFC supplies two elements to help you work with menus:
Class CMenu for manipulating your program’s menus at run time. Use the documentation for CMenu and the sample to learn how to use CMenu effectively.
- A mechanism for updating menus and toolbar buttons: enabling or disabling them on the fly to suit current program conditions.
Visual C++ also provides a https://msdn.microsoft.com/en-us/library/aa242707(v=vs.60).aspx for creating and editing your program's menu resources.