📄 mclassexampleappview.cpp
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#include "MClassExampleAppView.h"
CMClassExampleAppView* CMClassExampleAppView::NewL(const TRect& aRect)
{
CMClassExampleAppView* self = NewLC(aRect);
CleanupStack::Pop(self);
return self;
}
CMClassExampleAppView* CMClassExampleAppView::NewLC(const TRect& aRect)
{
CMClassExampleAppView* self = new (ELeave) CMClassExampleAppView;
CleanupStack::PushL(self);
self->ConstructL(aRect);
return self;
}
void CMClassExampleAppView::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
ActivateL();
}
CMClassExampleAppView::CMClassExampleAppView()
{
// Add any construction code that can not leave here
}
CMClassExampleAppView::~CMClassExampleAppView()
{
// Add any destruction code here
}
void CMClassExampleAppView::Draw(const TRect& /*aRect*/) const
{
// Clear the screen
CWindowGc& gc = SystemGc();
gc.Clear(Rect());
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -