createappview.cpp

来自「symbian 可在收件箱生成5000字超长短信!」· C++ 代码 · 共 48 行

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

#include "CreateAppView.h"

CCreateAppView* CCreateAppView::NewL(const TRect& aRect)
    {
    CCreateAppView* self = NewLC(aRect);
    CleanupStack::Pop(self);
    return self;
    }

CCreateAppView* CCreateAppView::NewLC(const TRect& aRect)
    {
    CCreateAppView* self = new (ELeave) CCreateAppView;
    CleanupStack::PushL(self);
    self->ConstructL(aRect);
    return self;
    }

void CCreateAppView::ConstructL(const TRect& aRect)
    {
    CreateWindowL();

    SetRect(aRect);

    ActivateL();
    }

CCreateAppView::CCreateAppView()
    {
    // Add any construction code that can not leave here
    }


CCreateAppView::~CCreateAppView()
    {
    // Add any destruction code here
    }

void CCreateAppView::Draw(const TRect& /*aRect*/) const
    {
    // Clear the screen
    CWindowGc& gc = SystemGc();
    gc.Clear(Rect());
    }


⌨️ 快捷键说明

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