当N93翻转屏幕时动态更新的CBA在多视图程序中无法显示的问题
文章信息
- 设备, 软件 版本:
S60 3rd Edition
- 描述:
肖像模式->View1->风景模式(设备翻转)->切换到View->肖像模式(设备翻转)->View2中的CBA动态更新。但无法显示
TKeyResponse Ctest1Container2::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if(aKeyEvent.iCode == EKeyOK)
{
if(iCba == R_AVKON_SOFTKEYS_OPTIONS_BACK)
{
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
cba->SetCommandSetL(R_AVKON_SOFTKEYS_CANCEL);
cba->MakeVisible(EFalse); //Add this line to the source code
cba->DrawNow();
cba->MakeVisible(ETrue); //Add this line to the source code
//CEikonEnv::Static()->InfoWinL(_L("info"), _L("hi"));
iCba = R_AVKON_SOFTKEYS_CANCEL;
}
else
{
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
cba->SetCommandSetL(R_AVKON_SOFTKEYS_OPTIONS_BACK);
cba->MakeVisible(EFalse); //Add this line to the source code
cba->DrawNow();
cba->MakeVisible(ETrue); //Add this line to the source code
//CEikonEnv::Static()->InfoWinL(_L("info"), _L("hi"));
iCba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
}
return EKeyWasConsumed;
}
return EKeyWasNotConsumed;
}


(no comments yet)