动态菜单

1:RSS中
RESOURCE CBA r_fouremail_selectsendemail_menu
{
 buttons =
 {
 CBA_BUTTON { id=EFourEmailCmdSure; txt = qtn_appl_sure; },
 CBA_BUTTON { id=EFourEmailCmdBack; txt = qtn_appl_back; }
 };
}
2:在程序中
    CEikButtonGroupContainer* cba = Cba();
    cba->SetCommandSetL( r_fouremail_selectsendemail_menu);
    cba->DrawDeferred();
3:使用完以后必须销毁
 CEikButtonGroupContainer* cba = Cba();
 cba->RemoveCommandFromStack(0,EFourEmailCmdSure);//第一个参数是CBA的位置,第二个参数是CMDID
 cba->RemoveCommandFromStack(1,EFourEmailCmdBack);

你可能感兴趣的:(动态)