#include <acknex.h>
#include <windows.h>

int main(void)
{
wait(1); //don't set in the first frame
char *szClass="LiteC menu_test";
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW|CS_VREDRAW;
wcex.cbClsExtra = 0;
wcex.lpfnWndProc = NULL;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hbrBackground = COLOR_WINDOW+1;
wcex.lpszMenuName = NULL;
wcex.lpszClassName = szClass;
RegisterClassEx(&wcex);

long menu=CreateMenu();
long hSubMenu;
hSubMenu=CreateMenu();
InsertMenu(hSubMenu,0,MF_BYPOSITION|MF_STRING,1,"Open");
InsertMenu(hSubMenu,2,MF_BYPOSITION|MF_STRING,3,"QUIT");
InsertMenu(menu,0,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu,"File");

if(hWnd)
{
SetMenu(hWnd,menu);
}
}

/*
Here, a modified version of the mci menu
Works fine for me without the LRES stuff and so on
*/