?? aknexmenuokcontainer.h
字號:
/* Copyright (c) 2005, Nokia. All rights reserved */
#ifndef __AKNEXMNEUOKCONTAINER_H__
#define __AKNEXMNEUOKCONTAINER_H__
// INCLUDES
#include <aknview.h>
#include <eikedwin.h>
// CONSTANTS
const TInt KNumberOfComponentOkView = 2;
//const TInt KNumberOfMargenInScreen = 20;
const TInt KAknExMenuWhite = 0xffffff;
//ENUMERATION
enum TPointerToComponentOkView
{
EUpperTextOkView = 0,
ELowerTextOkView
};
// FORWARD DECLARATIONS
class CAknExMenuOkView;
// CLASS DECLARATION
/**
* CAknExMenuOkContainer container control class.
*/
class CAknExMenuOkContainer : 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, CAknExMenuOkView* aParent );
/**
* ~CAknExMenuOkContainer.
* Virtual Destructor.
*/
virtual ~CAknExMenuOkContainer();
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;
/**
* OfferKeyEventL
* From CCoeControl, Handles key event.
* @param aKeyEvent The key event.
* @param aType The type of the event.
* @return Indicates whether or not the key event was
* used by this control.
*/
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
TEventCode aType);
/**
* 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 CAknExMenuOkContainer object.
*/
CEikEdwin* iUpperText;
/**
* iLowerText
* Owned by CAknExMenuOkContainer object.
*/
CEikEdwin* iLowerText;
/**
* iParent, pointer to the view
* Not Owned by CAknExMenuOkContainer object.
*/
CAknExMenuOkView* iParent;
};
#endif // __AKNEXMNEUOKCONTAINER_H__
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -