www.pudn.com > ChineseDisplay.rar > ChineseDisplay1.rss


/* 
============================================================================ 
 Name        : ChineseDisplay1.rss 
 Author      :  
 Version     : 
 Copyright   : Your copyright notice 
 Description : This file contains all the resources for the ChineseDisplay1. 
============================================================================ 
*/ 
 
//  RESOURCE IDENTIFIER 
NAME    AWIZ // 4 letter ID 
 
//  INCLUDES 
 
#include  
#include "ChineseDisplay1.hrh" 
#include "ChineseDisplay1.loc" 
#include  
#include  
#include  
 
 
 
//  RESOURCE DEFINITIONS  
 
RESOURCE RSS_SIGNATURE { } 
 
RESOURCE TBUF { buf = "ChineseDisplay1"; } 
 
RESOURCE EIK_APP_INFO 
    { 
    hotkeys = r_chinesedisplay1_hotkeys; 
    menubar = r_chinesedisplay1_menubar; 
    cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;      
    } 
 
//---------------------------------------------------- 
//    
//    r_chinesedisplay1_hotkeys 
// 
//---------------------------------------------------- 
// 
RESOURCE HOTKEYS r_chinesedisplay1_hotkeys 
    { 
    control = 
        { 
        HOTKEY { command = EAknCmdExit; key='e'; } 
        }; 
    } 
 
//---------------------------------------------------- 
//    
//    r_chinesedisplay1_menubar 
// 
//---------------------------------------------------- 
// 
RESOURCE MENU_BAR r_chinesedisplay1_menubar 
    { 
    titles = 
        { 
        MENU_TITLE { menu_pane = r_chinesedisplay1_menu; txt = "File"; } 
        }; 
    } 
 
//---------------------------------------------------- 
//    
//    r_chinesedisplay1_menu 
// 
//---------------------------------------------------- 
// 
RESOURCE MENU_PANE r_chinesedisplay1_menu 
    { 
    items = 
        { 
        MENU_ITEM { command = EChineseDisplay1CmdAppTest; txt = qtn_appl_test; }, 
        MENU_ITEM { command = EAknCmdExit; txt = qtn_appl_exit; } 
        }; 
    } 
 
//---------------------------------------------------------------------- 
//  r_$(elementName)_text -- Localized string used by the application 
//---------------------------------------------------------------------- 
/* 
References to the following line in the .loc file: 
	#define R_MESSAGE_TEXT_STRING "Hello world!" 
With S60 you can load the buffer by using StringLoader (more flexible API): 
	#include 	// Link against: CommonEngine.lib  
	HBufC* text = StringLoader::LoadLC(R_MESSAGE_TEXT); 
	// Do something with the string 
	CleanupStack::PopAndDestroy(text); 
Or in the traditional Symbian OS way with CCoeEnv::AllocReadResourceLC(): 
	#include 			// Link against: eikcore.lib 
	HBufC* text = CEikonEnv::Static()->AllocReadResourceLC(R_MESSAGE_TEXT); 
	// Do something with the string 
	CleanupStack::PopAndDestroy(text); 
*/ 
RESOURCE TBUF r_message_text {	buf = R_MESSAGE_TEXT_STRING; }