×
Namespaces

Variants
Actions
Revision as of 06:02, 25 January 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to display an image in the title pane using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

This code snippet shows how to display an image in the Symbian title pane.

Article Metadata
Article
Created: vasant21 (10 May 2007)
Last edited: hamishwillee (25 Jan 2012)

Contents

Source code

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);
}
This page was last modified on 25 January 2012, at 06:02.
43 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.

×