Following code sample can be used to retrieve application icons
Hearders Required:
#include <fbs.h> //CFbsBitmap
#include <aknsskininstance.h> //MAknsSkinInstance
#include <aknsutils.h> //AknsUtils
Library required:
LIBRARY fbscli.lib ///CFbsBitmap
LIBRARY aknskins.lib aknskinsrv.lib aknswallpaperutils.lib //MAknsSkinInstance ,AknsUtil
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);
}
分享到:
相关推荐
Get a File’s Icon
Simple routine to get Icon another application.
use this app to get your demo's or project's signatrue, copy the md5 code to wechat developer's platform to apply app id.
It’s easy to get started and produce a powerful and professional looking website with Zend Framework 2 Application Development. Exploring real life applications, we will explore the Zend Framework 2 ...
$ npm install get-uid var getUid = require ( 'get-uid' ) ; getUid ( ) ; //1178851014 getUid ( ) ; //811233864 ... 又一个 uid 生成器? 已经有一些了: 基因-uid 独特 用户界面 用户名2 uid-util ...
After you have developed five full projects, the book provides you with some bare-bone skeleton codes for a few functional but incomplete projects, challenging you to put your skills to test by ...
java解决405 - HTTP method GET is not supported by this URL
You will also learn about securing your application data by specifying ACL and Roles to your data objects. We will also learn about configuration in detail, and the implementation of cloud code to ...
icon is included by the main resource file GetIP.rc. res\GetIP.rc2 This file contains resources that are not edited by Microsoft Developer Studio. You should place all resources not editable by ...
support-application is a library which can get the information about the app like application, applicationContext, classloader, appName, versionName, versionCode, isDebugAble without context. ...
You’ll start by discovering the internal components of an Android and an iOS application. Moving ahead, you’ll understand the inter-process working of these applications. Then you’ll set up a test...
ASP.NET Core: Cloud-ready, Enterprise Web Application Development by Mugilan T. S. Ragupathi English | 9 Jun. 2017 | ASIN: B072KDVHCS | 1414 Pages | AZW3 | 36.34 MB Create fast, scalable, and high-...
Designed for beginners to help you get started with GUI application development Develop your own applications by creating customized widgets and dialogs Written in a simple and elegant structure so...
to find or not covered by the documentation. Spice it up with performance notes and we'd get a book that would be interesting to almost everyone. This book will take you through a number of clear, ...
“Boost C++ Application Development Cookbook” provides you with a number of clear step-by-step recipes that will help you take advantage of the real power of Boost and C++, while giving you a good ...
BirdDevice_Getuid_Console
getaddrinfo.c 内部代码 getaddrinfo.c 内部代码 getaddrinfo.c 内部代码 getaddrinfo.c 内部代码
Very simple application which shows how to get your PC’s IP address using the VB Winsock control.
Beginning with a focus on robustness, packaging, and releasing application code, you’ll move on to focus on improving application lifetime by making code extensible, reusable, and readable. Get to ...