simpleex_ui.cpp

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

CPP
45
字号

#include "SimpleEx.h"
#include "SimpleEx.hrh"



void CSimpleExAppUi::ConstructL()
    {
    BaseConstructL();
	           
    iAppView = CSimpleExAppView::NewL(ClientRect());
    iAppView->UpdateScreenText(KSimpleExText); 
    }

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

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

        case ESimpleExCommand:
           break;
        
        case ESimpleExDialog:
            CSimpleExForm* form = CSimpleExForm::NewL(iAppView->iDisplayText,iAppView->iTextColor);
            form->ExecuteLD(R_SIMPLEEX_DIALOG);
            break;
        }
    }



⌨️ 快捷键说明

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