ldmno20appui.cpp

来自「如何实现一个活动对象」· C++ 代码 · 共 60 行

CPP
60
字号
/* Copyright (c) 2008, Nokia. All rights reserved */

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

#include "LDMNO20.pan"
#include "LDMNO20AppUi.h"
#include "LDMNO20.hrh"
#include "CircleView.h"


void CLDMNO20AppUi::ConstructL()
    {
    BaseConstructL(EAknEnableSkin);

	iAppView = CCircleView::NewL();
	AddViewL(iAppView);


    }

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

CLDMNO20AppUi::~CLDMNO20AppUi()
    {

    }

void CLDMNO20AppUi::HandleCommandL(TInt aCommand)
    {
    switch(aCommand)
        {
        case EEikCmdExit:
        case EAknSoftkeyExit:
            Exit();
            break;

        case ELDMNO20Command1:
            {
            _LIT(message,"Command 1");
            CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
            informationNote->ExecuteLD(message);
            }
            break;

        default:
            Panic(ELDMNO20BasicUi);
            break;
        }
    }


void CLDMNO20AppUi::Leave()
{
	Exit();
}

⌨️ 快捷键说明

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