biaocommcontainer.h
来自「一个可以加载图片作为下拉菜单的symbian手机示例」· C头文件 代码 · 共 93 行
H
93 行
/*
* BiaoCommContainer.h
*
* Created on: 2009-4-24
* Author: IBM
*/
#ifndef BIAOCOMMCONTAINER_H_
#define BIAOCOMMCONTAINER_H_
// 1.
#include <eikon.hrh>
#include "Biaofeng.hrh"
// 2.
#include <eikon.rsg>
//#include "Biaofeng.rsg"
// 3.
#include <eikenv.h>
#include <eikappui.h>
#include <eikproc.h>
#include <eikdialg.h>
#include <eikmenub.h>
#include <eikapp.h>
#include <eikdoc.h>
#include <coeutils.h>
#include <barsread.h>
#include <eikfctry.h>
#include "BiaofengBaseControl.h"
// The unique identifier for this application.
// NOTE that the number has been arbitrarily chosen for the purpose of
// of the example.
// const TUid KUidExampleApp={0x01000d00};
//////////////////////////////////////////////////////////////////////////////
//
// -----> CSmileyContainer(definition)
//
//////////////////////////////////////////////////////////////////////////////
class CSmileyContainer : public CCoeControl,
public MCoeControlObserver
{
public:
// Construction
CSmileyContainer();
void ConstructL(const TRect& aRect);
// Destruction
~CSmileyContainer();
void ConstructFromResourceL(TResourceReader& aReader);
void PrepareForFocusLossL();
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
protected:
void FocusChanged(TDrawNow aDrawNow);
private:
// Virtual, defined by CCoeControl; replaces the default implementation
// provided by CCoeControl.
void Draw(const TRect& aRect) const;
// Virtual, defined by CCoeControl; replaces the default implementation
// provided by CCoeControl.
TInt CountComponentControls() const;
// Virtual, defined by CCoeControl; replaces the default implementation
// provided by CCoeControl.
CCoeControl* ComponentControl(TInt aIndex) const;
// Virtual, defined by CCoeControl; empty implementation provided by
// CCoeControl; full implementation provided by this class
void SizeChanged();
// Defined as pure virtual by the mixin class MCoeControlObserver
// inherited by CCoeControl. An empty implementation provided by
// this class (its containees do not report events).
void HandleControlEventL(CCoeControl* aControl,
TCoeEvent aEventType);
private:
// Member functions defined and used by this class
void SwapFocus(CCoeControl* aControl);
private:
// Data members defined and used by this class.
CSmiley* iSmiley1;
CSmiley* iSmiley2;
};
#endif /* BIAOCOMMCONTAINER_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?