hI
Thanks, it worked.
I have other question. after I set my menu, I rum the game and when I try to click in the menu , nothing happens. Why? I created one function to create menu, as:
function createMenu()
{
long menu=CreateMenu();
long hSubMenu;
long hSubMenu1;
long hSubMenu2;
hSubMenu=CreateMenu();
hSubMenu1=CreateMenu();
hSubMenu2=CreateMenu();
InsertMenu(hSubMenu,1,MF_BYPOSITION|MF_STRING,1,"Open");
InsertMenu(hSubMenu1,0,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu2,"save");
InsertMenu(hSubMenu,0,MF_BYPOSITION|MF_STRING,3,"QUIT");
InsertMenu(menu,0,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu,"File");
InsertMenu(menu,1,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu1,"Option");
InsertMenu(hSubMenu2,0,MF_BYPOSITION|MF_STRING,1,"teste");
SetMenu(hWnd,menu);
}
What Will I need to do?
I need create the function: LRESULT CALLBACK WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
I am lost. Could someone help me?
thx
Amadeu