⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listboxappui.cpp

📁 symbian 二版本的自定义控件
💻 CPP
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */

#include <avkon.hrh>
#include <aknnotewrappers.h> 
#include <Listbox.mbg>

#include "Listbox.pan"
#include "ListboxAppUi.h"
#include "WorldView.h"
#include "Listbox.hrh"

void CListboxAppUi::ConstructL()
{
    BaseConstructL(EAknEnableSkin);
	
	m_pView = CWorldView::NewL();
	AddViewL(m_pView);
}

CListboxAppUi::CListboxAppUi()                              
{
    // add any construction that cannot leave here
}

CListboxAppUi::~CListboxAppUi()
{
	
}

void CListboxAppUi::HandleCommandL(TInt aCommand)
{
    switch(aCommand)
	{
	case EEikCmdExit:
	case EAknSoftkeyExit:
		Exit();
		break;
		
	case EListboxCommand1:
		{
            _LIT(message,"Command 1");
            CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
            informationNote->ExecuteLD(message);
		}
		break;
		
	default:
		Panic(EListboxBasicUi);
		break;
	}
}
CFbsBitmap* CListboxAppUi::LoadGraphicsL(TInt aType)
{
	TBuf<KMaxPath> pathAppMbm;
#ifdef __WINS__
	pathAppMbm.Copy(_L("z:\\system\\apps\\Listbox\\Listbox.mbm"));
#else
	TFileName appFullName;
	appFullName = Application()->AppFullName();
	TParsePtr parse(appFullName);
	pathAppMbm.Copy(parse.DriveAndPath());
	pathAppMbm.Append(_L("Listbox.mbm"));
#endif
	switch(aType)
	{
	case 0:
		return iEikonEnv->CreateBitmapL(pathAppMbm, EMbmListboxMarkoff);
	case 1:
		return iEikonEnv->CreateBitmapL(pathAppMbm, EMbmListboxMarkeditem);
	default:
		return NULL;
	}
}



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -