ldleniefeilongappview.cpp
来自「symbian 视图切换源代码,很有学习价值」· C++ 代码 · 共 48 行
CPP
48 行
/* Copyright (c) 2008, NieFeiLong. All rights reserved */
#include "LDLENieFeiLongAppView.h"
CLDLENieFeiLongAppView* CLDLENieFeiLongAppView::NewL(const TRect& aRect)
{
CLDLENieFeiLongAppView* self = NewLC(aRect);
CleanupStack::Pop(self);
return self;
}
CLDLENieFeiLongAppView* CLDLENieFeiLongAppView::NewLC(const TRect& aRect)
{
CLDLENieFeiLongAppView* self = new (ELeave) CLDLENieFeiLongAppView;
CleanupStack::PushL(self);
self->ConstructL(aRect);
return self;
}
void CLDLENieFeiLongAppView::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
ActivateL();
}
CLDLENieFeiLongAppView::CLDLENieFeiLongAppView()
{
// Add any construction code that can not leave here
}
CLDLENieFeiLongAppView::~CLDLENieFeiLongAppView()
{
// Add any destruction code here
}
void CLDLENieFeiLongAppView::Draw(const TRect& /*aRect*/) const
{
// Clear the screen
CWindowGc& gc = SystemGc();
gc.Clear(Rect());
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?