mclassexampleappui.cpp

来自「symbian中讲述的一个有关M类使用的例子」· C++ 代码 · 共 56 行

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

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

#include "MClassExample.pan"
#include "MClassExampleAppUi.h"
#include "MClassExample.hrh"
#include "SendDataview.h"
#include "GetDataview.h"

void CMClassExampleAppUi::ConstructL()
    {
    BaseConstructL(EAknEnableSkin);
	m_GetDataView = CGetDataView::NewL();
	m_SendDataView = CSendDataView::NewL(m_GetDataView);

	AddViewL(m_SendDataView);
	AddViewL(m_GetDataView);
    }

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

CMClassExampleAppUi::~CMClassExampleAppUi()
    {
    }

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

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

        default:
            Panic(EMClassExampleBasicUi);
            break;
        }
    }



⌨️ 快捷键说明

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