How to add submenu to a CMenu in MFC?
问题 I have an MFC app that uses CMenu for the main menu bar. I haven't been able to create submenus successfully. I can have the first level of File, Edit, View, etc and their sub menus, but I can't create a submenu off of one of those menus. For example, I would like to be able to go File->Recent Items-> list of items in submenu I can do this easily enough with the resource editor in VS, but this needs to be done dynamically. Am I using the right class in CMenu? Any suggestions on what to try? I