⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multiviewsappview.cpp

📁 Symbian OS 源码:一个基于Symbian OS UI上面的标准VIEW源码。大家共同努力学好SYMBIAN
💻 CPP
字号:
/* Copyright ( c ) 2004, Nokia. All rights reserved */


// INCLUDE FILES
#include "MultiViewsAppView.h"


// ========================= MEMBER FUNCTIONS ==================================

// -----------------------------------------------------------------------------
// CMultiViewsAppView::CMultiViewsAppView()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CMultiViewsAppView::CMultiViewsAppView()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CMultiViewsAppView::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMultiViewsAppView* CMultiViewsAppView::NewL( const TRect& aRect )
    {
    CMultiViewsAppView* self = CMultiViewsAppView::NewLC( aRect );
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CMultiViewsAppView::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMultiViewsAppView* CMultiViewsAppView::NewLC( const TRect& aRect )
    {
    CMultiViewsAppView* self = new ( ELeave ) CMultiViewsAppView;
    CleanupStack::PushL( self );
    self->ConstructL( aRect );
    return self;
    }

// -----------------------------------------------------------------------------
// CMultiViewsAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMultiViewsAppView::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();
    }

// -----------------------------------------------------------------------------
// CMultiViewsAppView::~CMultiViewsAppView()
// Destructor.
// -----------------------------------------------------------------------------
//
CMultiViewsAppView::~CMultiViewsAppView()
    {
    // No implementation required
    }

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

// End of File

⌨️ 快捷键说明

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