Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.


From Wiki
Jump to: navigation, search
Article Metadata

最后由 hamishwillee 在 27 Aug 2012 编辑
  • 详细描述

这篇文章描述了如何在使用第三方FEP输入法时(基于S60 Platform: FEP Example)可以显示短信统计。

根据S60 Platform: FEP Example,你可以使用iNaviPane->CreateMessageLabelL(KNaviPaneTextPinYin)方法,以便更新导航栏的显示。但时这也使得用户在短信程序中无法看到短信统计信息。

  • 解决方案

S60 Platform: FEP Example中,CreateMessageLabelL生成了一个新的CAknNavigationDecorator的对象,从而覆盖了好的。而这时第三方程序(如短信程序)需要它。你应该使用下列方法,获得原始导航栏的信息,并将它们增加到你生成的新CAknNavigationDecorator对象中。

void CFepIndicator::SetState(TAknEditingState aState)
else if (aState == ENumeric)
if (iNaviDecorator)
delete iNaviDecorator;
iNaviDecorator = NULL;
// Get original the pointer to CAknNavigationDecorator object
// from original navi pane
CAknNavigationDecorator* deco = iNaviPane->Top();
// If the original object is text or navi label type, retrieve
// its content
if( deco->ControlType() == CAknNavigationDecorator::EHintText
|| deco->ControlType() == AknNavigationDecorator::ENaviLabel )
CAknNaviLabel* label =
STATIC_CAST(CAknNaviLabel*, deco->DecoratedControl());
// After this, label->Text() retrieves the text used in the orig.
// label, which can then be added to the new navi label.



This page was last modified on 27 August 2012, at 03:47.
255 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.