?? aknexmenusubcontainer.h
字號:
/* Copyright (c) 2005, Nokia. All rights reserved */
#ifndef __AKNEXMNEUSUBCONTAINER_H__
#define __AKNEXMNEUSUBCONTAINER_H__
// INCLUDES
#include <aknview.h>
#include <eikedwin.h>
// CONSTANTS
const TInt KNumberOfComponentSubView = 2;
const TInt KAknExSubMenuWhite = 0xffffff;
//ENUMERATION
enum TPointerToComponentSubView
{
EUpperTextSubView = 0,
ELowerTextSubView
};
// FORWARD DECLARATIONS
class CAknExMenuSubView;
// CLASS DECLARATION
/**
* CAknExMenuSubContainer container control class.
*
*/
class CAknExMenuSubContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* ConstructL
* 2nd phase constructor.
* Perform the second phase construction of a CAknExMenuSubContainer object.
* @param aRect Frame rectangle for container.
* @param aParent Pointer of parent view for container.
*/
void ConstructL(const TRect& aRect, CAknExMenuSubView* aParent);
/**
* ~CAknExMenuSubContainer
* Virtual Destructor.
*/
virtual ~CAknExMenuSubContainer();
private: // Functions from base classes CoeControl
/**
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/**
* From CoeControl,CountComponentControls.
* @return number of controls inside this container.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
* @param Index number of the control.
* @return Pointer of controls inside this container.
*/
CCoeControl* ComponentControl( TInt aIndex ) const;
/**
* From CCoeControl,Draw.
* @param aRect the rectangle of this view that needs updating
*/
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
/**
* 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 CAknExMenuSubContainer object.
*/
CEikEdwin* iUpperText;
/**
* iLowerText
* Owned by CAknExMenuSubContainer object.
*/
CEikEdwin* iLowerText;
};
#endif // __AKNEXMNEUSUBCONTAINER_H__
// End of File
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -