Symbian 得到左右软键项(CBA)的内容

CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
if (cba)
    {
    MEikButtonGroup* buttonGroup = cba->ButtonGroup();
    for (TInt pos = 0; pos < 3; pos++)
        {
        TInt cmdId = buttonGroup->CommandId(pos);
        CCoeControl* button = buttonGroup->GroupControlById(cmdId);
        if (button && buttonGroup->IsCommandVisible(cmdId))
            {
            CEikLabel* label =
                    static_cast<CEikLabel*> (button->ComponentControl(0));
            const TDesC* txt = label->Text();
            }
        }
    }
原文地址:https://www.cnblogs.com/zziss/p/2026334.html