分类: C/C++
2009-08-17 13:06:45
Following code sample can be used to retrieve application icons
Hearders Required:
#include//CFbsBitmap #include//MAknsSkinInstance #include//AknsUtils
Library required:
LIBRARY fbscli.lib ///CFbsBitmap LIBRARY aknskins.lib aknskinsrv.lib aknswallpaperutils.lib //MAknsSkinInstance ,AknsUtils
Source Code:
CGulIcon* CMyClass::GetApplicationIconL(const TUid& aAppUID) { CFbsBitmap* AppIcon(NULL); CFbsBitmap* AppIconMsk(NULL); MAknsSkinInstance* skin = AknsUtils::SkinInstance(); AknsUtils::CreateAppIconLC(skin,aAppUID, EAknsAppIconTypeContext,AppIcon,AppIconMsk); CleanupStack::Pop(2); return CGulIcon::NewL(AppIcon,AppIconMsk); }