i dont like making menus at design time, because i like to be able to modify anything about my program that i want, including menus. but i cant get the code exactly right. heres what im doing at the moment:

Code:
HMENU hMenu;
HMENU hPopUp;

hMenu=CreateMenu();
hPopUp=CreatePopupMenu();
AppendMenu(hPopUp,MF_STRING,ID_EXIT,"E&xit");
AppendMenu(hMenu,MF_POPUP,(int)hPopUp,NULL);

if (SetMenu(hwnd,hMenu))
	Notify(hwnd,"success"); //my own routine, its just a messagebox
unfortunately a menu doesn't appear, but there is a small buffer area at the top of the client area, about half the height of a menu bar. why wont the code work?