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

📄 multiviewscontainer2.cpp

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


// INCLUDE FILES
#include "MultiViewsContainer2.h"


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

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


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

// -----------------------------------------------------------------------------
// CMultiViewsContainer2::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMultiViewsContainer2::ConstructL( const TRect& aRect )
    {
    CreateWindowL();
    SetRect( aRect );
    ActivateL();
    }


// -----------------------------------------------------------------------------
// CMultiViewsContainer2::CountComponentControls() const
// returns number of controls inside this container.
// -----------------------------------------------------------------------------
//
TInt CMultiViewsContainer2::CountComponentControls() const
    {
    return 0;
    }

// -----------------------------------------------------------------------------
// CMultiViewsContainer2::ComponentControl() const
// returns pointer of controls inside this container
// -----------------------------------------------------------------------------
//
CCoeControl* CMultiViewsContainer2::ComponentControl( TInt /*aIndex*/ ) const
    {
    return NULL;
    }

// -----------------------------------------------------------------------------
// CMultiViewsContainer2::Draw() const
// Draws the display
// -----------------------------------------------------------------------------
//
void CMultiViewsContainer2::Draw( const TRect& aRect ) const
    {
    CWindowGc& gc = SystemGc();
    gc.SetPenStyle( CGraphicsContext::ENullPen );
    gc.SetBrushColor( KRgbRed );
    gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
    gc.DrawRect( aRect );
    }

// End of File

⌨️ 快捷键说明

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