?? cyancontainer.cpp
字號(hào):
#include <gulicon.h>
#include <aknutils.h> // definition of AKN_LAF_COLOR()
#include <avkon.hrh>
#include <akntitle.h>
#include <aknnotewrappers.h>
#include "CyanContainer.h"
//////////////////////////////////////////////////////////////////////////
CCyanContainer::CCyanContainer()
{
}
// EPOC default constructor can leave.
void CCyanContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect( aRect );
ActivateL();
}
// destructor
CCyanContainer::~CCyanContainer()
{
}
void CCyanContainer::SizeChanged()
{
}
// ---------------------------------------------------------
// CCyanContainer::CountComponentControls() const
// return the number of controls
// ---------------------------------------------------------
//
TInt CCyanContainer::CountComponentControls() const
{
// return number of controls inside this container
return 0;
}
// ---------------------------------------------------------
// CCyanContainer::ComponentControl(TInt aIndex) const
// return the pointer to specified control.
// ---------------------------------------------------------
//
CCoeControl* CCyanContainer::ComponentControl( TInt /*aIndex*/ ) const
{
return NULL;
}
// ---------------------------------------------------------
// CCyanContainer::Draw(const TRect& aRect) const
// handle the message when client region must be Cyanrawn.
// ---------------------------------------------------------
//
void CCyanContainer::Draw( const TRect& /*aRect*/ ) const
{
CWindowGc& gc = SystemGc();
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.SetBrushColor(KRgbCyan);
gc.DrawRect(Rect());
}
// ---------------------------------------------------------
// CAknExGridContainer::OfferKeyEventL(
// const TKeyEvent& aKeyEvent, TEventCode aType )
// Handles the key events.
// ---------------------------------------------------------
//
TKeyResponse CCyanContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType )
{
return EKeyWasConsumed;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -