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

📄 simplecontrolcontainer.cpp

📁 《基于Symbian OS的手机开发与应用实践》这本书的配套源码。
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CSimpleControlContainer from SimpleControlContainer.h
*  Part of  : SimpleControl
*  Created  : 20.02.2006 by ToBeReplacedByAuthor
*  Implementation notes:
*     Initial content was generated by Series 60 Application Wizard.
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

// INCLUDE FILES
#include "SimpleControlContainer.h"

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

// ---------------------------------------------------------
// CSimpleControlContainer::ConstructL(const TRect& aRect)
// EPOC two phased constructor
// ---------------------------------------------------------
//
void CSimpleControlContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();

    SetRect(aRect);
    ActivateL();
    }

// Destructor
CSimpleControlContainer::~CSimpleControlContainer()
    {
    
    }

// ---------------------------------------------------------
// CSimpleControlContainer::SizeChanged()
// Called by framework when the view size is changed
// ---------------------------------------------------------
//
void CSimpleControlContainer::SizeChanged()
    {
    // TODO: Add here control resize code etc.
    
    }

// ---------------------------------------------------------
// CSimpleControlContainer::CountComponentControls() const
// ---------------------------------------------------------
//
TInt CSimpleControlContainer::CountComponentControls() const
    {
    return 0; // return nbr of controls inside this container
    }

// ---------------------------------------------------------
// CSimpleControlContainer::ComponentControl(TInt aIndex) const
// ---------------------------------------------------------
//
CCoeControl* CSimpleControlContainer::ComponentControl(TInt aIndex) const
    {
    return NULL;
    }

// ---------------------------------------------------------
// CSimpleControlContainer::Draw(const TRect& aRect) const
// ---------------------------------------------------------
//
void CSimpleControlContainer::Draw(const TRect& aRect) const
    {
    CWindowGc& gc = SystemGc();
    // TODO: Add your drawing code here
    // example code...
    gc.SetPenStyle( CGraphicsContext::ENullPen );
    gc.SetBrushColor( KRgbGray );
    gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
    gc.DrawRect( aRect );

    }

// ---------------------------------------------------------
// CSimpleControlContainer::HandleControlEventL(
//     CCoeControl* aControl,TCoeEvent aEventType)
// ---------------------------------------------------------
//
void CSimpleControlContainer::HandleControlEventL(
    CCoeControl* /*aControl*/,TCoeEvent /*aEventType*/)
    {
    // TODO: Add your control event handler code here
    }


// End of File  

⌨️ 快捷键说明

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