Can you see what's wrong here? After some research, decided to implement the dynamic menu as follows:
void MyAknView::DynInitMenuBarL(
TInt aResourceId, CEikMenuBar* aMenuBar)
{
CEikMenuBarTitle* title = new (ELeave) CEikMenuBarTitle;
title->iData.iMenuPaneResourceId
= R_MY_OWN_MENU_PANE_RESOURCE_ID;
title->iData.iText = _L("hiphip");
CEikMenuBar::CTitleArray* titles = new (ELeave)
CEikMenuBar::CTitleArray;
titles->AppendL(title);
aMenuBar->SetMenuTitleArray(titles);
}
However, according to the debugger, my aMenuBar is not affected at all, when calling its SetMenuTitleArray(...). The menu stays as it was before this function was called. Heeelp! =:-)