📄 imageconvertercontainer.cpp
字号:
/*
* ============================================================================
* Name : CImageConverterContainer from ImageConverterContainer.h
* Part of : ImageConverter
* Created : 25.11.2003 by Forum Nokia
* Implementation notes:
* Initial content was generated by Series 60 AppWizard.
* Version :
* Copyright: Nokia Corporation
* ============================================================================
*/
// INCLUDE FILES
#include "ImageConverterContainer.h"
#include <eiklabel.h> // for example label control
// ================= MEMBER FUNCTIONS =======================
// ---------------------------------------------------------
// CImageConverterContainer::ConstructL(const TRect& aRect)
// EPOC two phased constructor
// ---------------------------------------------------------
//
void CImageConverterContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
ActivateL();
}
// Destructor
CImageConverterContainer::~CImageConverterContainer()
{
}
// ---------------------------------------------------------
// CImageConverterContainer::SizeChanged()
// Called by framework when the view size is changed
// ---------------------------------------------------------
//
void CImageConverterContainer::SizeChanged()
{
// TODO: Add here control resize code etc.
}
// ---------------------------------------------------------
// CImageConverterContainer::CountComponentControls() const
// ---------------------------------------------------------
//
TInt CImageConverterContainer::CountComponentControls() const
{
return 0; // return nbr of controls inside this container
}
// ---------------------------------------------------------
// CImageConverterContainer::ComponentControl(TInt aIndex) const
// ---------------------------------------------------------
//
CCoeControl* CImageConverterContainer::ComponentControl(TInt /*aIndex*/) const
{
return NULL;
}
// ---------------------------------------------------------
// CImageConverterContainer::Draw(const TRect& aRect) const
// ---------------------------------------------------------
//
void CImageConverterContainer::Draw(const TRect& /*aRect*/) const
{
CWindowGc& gc = SystemGc();
gc.Clear(); // not that efficient, but enough for this ex
if( iBitmap )
{
gc.BitBlt( TPoint(0,0), iBitmap );
}
}
// ---------------------------------------------------------
// CImageConverterContainer::HandleControlEventL(
// CCoeControl* aControl,TCoeEvent aEventType)
// ---------------------------------------------------------
//
void CImageConverterContainer::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 + -