📄 aknexmenucontainer.h
字号:
/* Copyright (c) 2005, Nokia. All rights reserved */
#ifndef __AKNEXMNEUCONTAINER_H__
#define __AKNEXMNEUCONTAINER_H__
// INCLUDES
#include <aknview.h>
#include <eikedwin.h>
// CONSTANTS
const TInt KNumberOfComponentView = 2;
//const TInt KNumberOfMargenInScreen = 20;
const TInt KAknExMenuWhite = 0xffffff;
//ENUMERATION
enum TPointerToComponentView
{
EUpperText = 0,
ELowerText
};
// FORWARD DECLARATIONS
class CAknExMenuView;
// CLASS DECLARATION
/**
* CAknExMenuContainer container control class.
*/
class CAknExMenuContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* ConstructL.
* 2nd phase constructor.
* @param aRect Frame rectangle for container.
* @param aParent Pointer of parent view for container.
*/
void ConstructL( const TRect& aRect, CAknExMenuView* aParent );
/**
* ~CAknExMenuContainer.
* Virtual Destructor.
*/
virtual ~CAknExMenuContainer();
private: // Functions from base classes CoeControl
/**
* SizeChanged
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/**
* CountComponentControls
* From CoeControl,CountComponentControls.
* @return number of controls inside this container.
*/
TInt CountComponentControls() const;
/**
* ComponentControl
* From CCoeControl,ComponentControl.
* @param Index number of the control.
* @return Pointer of controls inside this container.
*/
CCoeControl* ComponentControl( TInt aIndex ) const;
/**
* Draw
* From CCoeControl,Draw.
* @param Specified area for drawing
*/
void Draw( const TRect& aRect ) const;
/** From CoeControl, HandleResourceChange.
* Called by framework when the view layout is changed.
*/
virtual void HandleResourceChange(TInt aType);
private: // Functions from base classes MCoeControlObserver
/**
* HandleControlEventL
* From MCoeControlObserver Handles an event of type aEventType
* @param aControl Pointer to component control
* @param aEventType Event code
*/
void HandleControlEventL( CCoeControl* aControl,
TCoeEvent aEventType );
private: //data
/**
* iUpperText
* Owned by CAknExMenuContainer object.
*/
CEikEdwin* iUpperText;
/**
* iLowerText
* Owned by CAknExMenuContainer object.
*/
CEikEdwin* iLowerText;
};
#endif // __AKNEXMNEUCONTAINER_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -