⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aknexmenusubcontainer.h

📁 symbian ui的 例子 初学者可以 好好看看,这个是培训的资料,应该比较宝贵
💻 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -