im trying to find a tutorial on how to make menus ex.
File Menu1 Help at the top of your screen i cant find it spent 20 mins on google please help
Printable View
im trying to find a tutorial on how to make menus ex.
File Menu1 Help at the top of your screen i cant find it spent 20 mins on google please help
Old skool style:-
Stick in your WM_CREATE handler or before you show your window.Code://If there are complaints about these, uncomment
/*#define ID_APP_ABOUT 0xE140
#define ID_APP_EXIT 0xE141*/
HMENU menuMain, menuFile, menuMenu1, menuHelp;
menuMain = CreateMenu();
SetMenu(hwnd, menuMain);
menuFile = CreatePopupMenu();
AppendMenu(menuFile, MF_STRING, ID_APP_EXIT, "E&xit");
menuMenu1 = CreatePopupMenu();
menuHelp = CreatePopupMenu();
AppendMenu(menuHelp, MF_STRING, ID_APP_ABOUT, "&About");
AppendMenu(menuMain, MF_POPUP | MF_STRING, (unsigned int)menuFile, "&Game");
AppendMenu(menuMain, MF_POPUP | MF_STRING, (unsigned int)menuMenu1, "&Menu1");
AppendMenu(menuMain, MF_POPUP | MF_STRING, (unsigned int)menuHelp, "&Help");
Also take a look at:
CreateMenu(), CreatePopupMenu(), DestroyMenu(), TrackPopupMenuEx(), and InsertMenuItem()
but is there a tutorial site for it i want to learn not have something done for me
this has a lot of info in it, not sure if it's exactly what you want but I hope it helps: http://msdn.microsoft.com/library/de...usingmenus.asp