Symbian 如何得到左右软键项 (CBA)的内容
2010-05-31 20:12:00 来源:WEB开发网核心提示:虽然用的不多,但还是写上去供参考,Symbian 如何得到左右软键项 (CBA)的内容,CEikButtonGroupContainer* cba =CEikButtonGroupContainer::Current();if (cba){MEikButtonGroup* buttonGroup =cba->Bu
虽然用的不多,但还是写上去供参考。
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
const TDesC* txt = label->Text();
}
}
}
更多精彩
赞助商链接