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/archive/2011/04/24/2026334.html