在symbian中设置动态菜单(无view)
rss文件
//----------------------------------------------------
//
// r_pf_menubar
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_pf_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_pf_menu; txt = "File"; }
};
}
![](/Images/OutliningIndicators/None.gif)
//----------------------------------------------------
//
// r_pf_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_pf_menu
{
items =
{
MENU_ITEM { command = EAknCmdExit; txt = qtn_appl_exit; }
};
}
// ---------------------------------------------------------
// r_createalbum_menuber
// ---------------------------------------------------------
RESOURCE MENU_BAR r_createalbum_menuber
{
titles =
{
MENU_TITLE { menu_pane = r_createalbum_menu; txt = "File"; }
};
}
RESOURCE MENU_PANE r_createalbum_menu
{
items =
{
MENU_ITEM { command = EPFCmdAddFile; txt = qtn_createalbum_addfile; },
MENU_ITEM { command = EPFCmdSetting; txt = qtn_createalbum_setting; },
MENU_ITEM { command = EPFCmdSave; txt = qtn_createalbum_save; },
MENU_ITEM { command = EEikCmdExit; txt = qtn_appl_exit; }
};
}
在appui.cpp中就可以使用以下代码来切换菜单
iEikonEnv->AppUiFactory()->MenuBar()->SetMenuTitleResourceId(R_PF_MENUBAR);
iEikonEnv->AppUiFactory()->MenuBar()->SetMenuTitleResourceId(R_CREATEALBUM_MENUBER);
这样左侧的软件菜单就可以改变了!但右侧的菜单还是同一个!
由于暂时不需要修改右软件,加上时间紧迫,所以没有继续研究!
望有知道的高手告知,谢谢!~
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
在appui.cpp中就可以使用以下代码来切换菜单
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
这样左侧的软件菜单就可以改变了!但右侧的菜单还是同一个!
由于暂时不需要修改右软件,加上时间紧迫,所以没有继续研究!
望有知道的高手告知,谢谢!~
--kaixuan's cnblogs