引用自:http://www.sf.org.cn/Article/symbiandev/200511/2579.html

Symbian中的更改应用程序图标


 

应用程序的图标需要在MMP文件中用AIF语句指定,一个MMP的例子
/*
* ============================================================================
* Name : TestDlg.mmp
* Part of : TestDlg
* Created : 2005/09/12 by
* Description:
* This is the project specification file for TestDlg.
* Initial content was generated by Series 60 AppWizard.
*
* Version :
* Copyright:
* ============================================================================
*/

TARGET TestDlg.app
TARGETTYPE app
UID 0x100039CE 0x097A0B44
TARGETPATH \system\apps\TestDlg

SOURCEPATH ..\src
SOURCE TestDlgApp.cpp
SOURCE TestDlgAppUi.cpp
SOURCE TestDlgDocument.cpp
SOURCE TestDlgDialog.cpp
SOURCE MailViewDlg.cpp

RESOURCE ..\data\TestDlg.rss
RESOURCE ..\data\TestDlg_caption.rss
LANG SC

USERINCLUDE .
USERINCLUDE ..\inc

SYSTEMINCLUDE . \epoc32\include

LIBRARY euser.lib apparc.lib cone.lib eikcore.lib
LIBRARY eikcoctl.lib avkon.lib
LIBRARY eikdlg.lib estor.lib msgs.lib etext.lib

AIF TestDlg.aif ..\aif TestDlgaif.rss c8 context_pane_icon.bmp context_pane_icon_mask.bmp list_icon.bmp list_icon_mask.bmp


AIF
目录下的TestDlgaif.rss :

/*
* ============================================================================
* Name : TestDlgaif.rss
* Part of : TestDlg
* Created : 2005/09/12 by
* Description:
* RSS for creating the aif file for TestDlg.
* Initial content was generated by Series 60 AppWizard.
* Version :
* Copyright:
* ============================================================================
*/

#include <aiftool.rh>

RESOURCE AIF_DATA
{
app_uid=0x097A0B44;
num_icons=2;
embeddability=KAppEmbeddable;
newfile=KAppDoesNotSupportNewFile;
}

// End of File

安装后自动应用。一个MASK文件,就是把图标存成黑白2位色的文件,习惯上是名字加_mask,上面的例子中,就是context_pane_icon.bmpcontext_pane_icon_mask.bmp以及list_icon.bmp list_icon_mask.bmp四个文件。当然在资源文件要有说明,也在AIF那行。

posted on 2006-02-25 04:41 移动开发 阅读(2081) 评论(1)  编辑 收藏 引用
Comments
  • # re: Symbian中的更改应用程序图标
    guoxj
    Posted @ 2009-04-03 09:38
    请问3版也是这样吗  回复  更多评论   

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理