this works fine
Code:
        long menu;
	long hSubMenu;
	
	HWND hwnd=hWnd;

	menu=CreateMenu();
	hSubMenu=CreateMenu();
	
	InsertMenu(hSubMenu,1,MF_BYPOSITION|MF_STRING,1,"BEEP");
	InsertMenu(hSubMenu,2,MF_BYPOSITION|MF_STRING,2,"QUIT");

	InsertMenu(menu,0,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu,"Datei");
	
	SetMenu(hwnd,menu);



Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com