📄 multiviewscontainer2.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 + -