ldn02appview.cpp

来自「symbian电话簿引擎的经典例子」· C++ 代码 · 共 48 行

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

#include "LDN02AppView.h"

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

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

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

    SetRect(aRect);

    ActivateL();
    }

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


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

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


⌨️ 快捷键说明

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