Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VC++ MFC Menus

Status
Not open for further replies.

stevepuri

Programmer
Mar 30, 2001
24
US
Whoever responded to my question
"How to make menus in VC++ using MFC"
then please reply back again as I have
received nothing!

Thanks,
Steve.
 
You can use CMenu for creating menu's runtime member functions like create will create a menu and u can use AppendMenu to create a menu item. If u want to create a popmenu u have to use CreatePopmenu and then u can use Insert Menu. for exampel

CMenu menu,menu1;
menu.CreateMenu();
menu.AppendMenu(MF_STRING, ID_FILE, "&File");
menu1.CreatePopupMenu();
menu1.AppendMenu(MF_STRING , ID_EXIT, "E&xit");
menu.AppendMenu(MF_POPUP, (UINT)menu1.m_hmenu, "Fi&le");

Setmenu(&menu);



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top