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();
}
}
}