You Are Here:

Community: Wiki

This page was last modified on 9 September 2009, at 02:57.

How to Display an Image in the Title Pane

From Forum Nokia Wiki

Reviewer Approved   
The Code below shows how to display an image in the Title Pane.

Headers Required:

#include <eikspane.h>
#include <akntitle.h>
#include <fbs.h>

Library Needed:

LIBRARY  avkon.lib fbscli.lib

Source:

TUid titlePaneUid;
 
titlePaneUid.iUid = EEikStatusPaneUidTitle;
 
CEikStatusPane* statusPane = StatusPane();
 
CEikStatusPaneBase::TPaneCapabilities subPane =
statusPane->PaneCapabilities(titlePaneUid);
 
// if title pane is accessible //
 
if (subPane.IsPresent() && subPane.IsAppOwned())
{
 
CAknTitlePane* titlePane =
(CAknTitlePane*)statusPane->ControlL(titlePaneUid);
 
CFbsBitmap* bitmap =
iEikonEnv->CreateBitmapL(KBitMapFile, EMbmTitlepaneTitle);
 
// set the title pane's image
 
titlePane->SetPicture(bitmap);
 
}

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia