simpleex_ui.cpp

来自「Developing.Software.for.Symbian.OS 书籍配套源」· C++ 代码 · 共 50 行

CPP
50
字号

#include "SimpleEx.h"
#include "SimpleEx.hrh"
#include "eikchlst.h"
#include <eiktime.h>

void CSimpleExAppUi::ConstructL()
    {
    BaseConstructL();
	

    iAppView = CSimpleExAppView::NewL(ClientRect());

    }


CSimpleExAppUi::~CSimpleExAppUi()
    {
    if (iAppView)
        {
        delete iAppView;
        iAppView = NULL;
        }
    }

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

        case ESimpleExCommand:
            {
            _LIT(message,"Start Selected!");
            iEikonEnv->AlertWin(_L("Start Selected!"));

            break;
            }

        case ESimpleExDialog:
            CEikDialog* dialog = new (ELeave) CSimpleExDialog(iAppView->iDisplayText,iAppView->iTextColor);
            dialog->ExecuteLD(R_SIMPLEEX_DIALOG);
            break;

      }
    }

⌨️ 快捷键说明

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