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();
}
}
}
本文介绍了在Symbian系统中如何通过CEikButtonGroupContainer类获取按钮组内的按钮,并进一步获取每个可见按钮上的文本内容。
1012

被折叠的 条评论
为什么被折叠?



