helpexampleappview.cpp
来自「应用于S60平台的示例程序」· C++ 代码 · 共 92 行
CPP
92 行
/*
* ==============================================================================
* Name : helpexampleappview.cpp
* Part of : Help example
* Interface :
* Description :
* Version :
*
* Copyright (c) 2004 - 2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
// INCLUDE FILES
#include "HelpExampleAppView.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CHelpExampleAppView::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CHelpExampleAppView* CHelpExampleAppView::NewL( const TRect& aRect )
{
CHelpExampleAppView* self = NewLC( aRect );
CleanupStack::Pop( self );
return self;
}
// -----------------------------------------------------------------------------
// CHelpExampleAppView::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CHelpExampleAppView* CHelpExampleAppView::NewLC( const TRect& aRect )
{
CHelpExampleAppView* self = new ( ELeave ) CHelpExampleAppView;
CleanupStack::PushL( self );
self->ConstructL( aRect );
return self;
}
// -----------------------------------------------------------------------------
// CHelpExampleAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CHelpExampleAppView::ConstructL( const TRect& aRect )
{
CreateWindowL();
SetRect ( aRect );
ActivateL();
}
// -----------------------------------------------------------------------------
// CHelpExampleAppView::CHelpExampleAppView()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CHelpExampleAppView::CHelpExampleAppView()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CHelpExampleAppView::~CHelpExampleAppView()
// Destructor.
// -----------------------------------------------------------------------------
//
CHelpExampleAppView::~CHelpExampleAppView()
{
// No implementation required
}
// ----------------------------------------------------------------------------
// CHelpExampleAppView::Draw()
// Draw this application's view to the screen
// ----------------------------------------------------------------------------
//
void CHelpExampleAppView::Draw( const TRect& /*aRect*/ ) const
{
// Clear the screen
CWindowGc& gc = SystemGc();
gc.Clear ( Rect() );
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?