Interface *MaxInterface= GetCOREInterface();
IMenuManager *MaxMenuManager = MaxInterface->GetMenuManager();
IMenu *MaxMainMenu = MaxMenuManager->GetMainMenuBar();
IMenu *TestMenu = GetIMenu();
TestMenu->SetTitle("TestMenu");
IMenuItem *TestMenuItem = GetIMenuItem();
TestMenuItem->SetTitle("TestMenuItem");
TestMenu->AddItem(TestMenuItem);
IMenuItem *TempMenuItem = GetIMenuItem();
TempMenuItem->SetSubMenu(TestMenu);
MaxMenuManager->RegisterMenu(TestMenu);
MaxMainMenu->AddItem(TempMenuItem);
MaxMenuManager->UpdateMenuBar();