wlansampleexappview.cpp
来自「基于symbian平台的Wlan创建」· C++ 代码 · 共 65 行
CPP
65 行
/* ====================================================================
* File: WLanSampleExAppView.cpp
* Created: 01/19/07
* Author:
* Copyright (c): , All rights reserved
* ==================================================================== */
#include <coemain.h>
#include <WLanSampleEx.rsg>
#include "WLanSampleExAppView.h"
// Standard construction sequence
CWLanSampleExAppView* CWLanSampleExAppView::NewL(const TRect& aRect)
{
CWLanSampleExAppView* self = CWLanSampleExAppView::NewLC(aRect);
CleanupStack::Pop(self);
return self;
}
CWLanSampleExAppView* CWLanSampleExAppView::NewLC(const TRect& aRect)
{
CWLanSampleExAppView* self = new (ELeave) CWLanSampleExAppView;
CleanupStack::PushL(self);
self->ConstructL(aRect);
return self;
}
CWLanSampleExAppView::CWLanSampleExAppView()
{
// no implementation required
}
CWLanSampleExAppView::~CWLanSampleExAppView()
{
// no implementation required
}
void CWLanSampleExAppView::ConstructL(const TRect& aRect)
{
// Create a window for this application view
CreateWindowL();
// Set the windows size
SetRect(aRect);
// Activate the window, which makes it ready to be drawn
ActivateL();
}
// Draw this application's view to the screen
void CWLanSampleExAppView::Draw(const TRect& /*aRect*/) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
// Gets the control's extent
TRect rect = Rect();
// Clears the screen
gc.Clear(rect);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?