multiviewscontainer2.h

来自「symbian os c/c++ 多个view切换」· C头文件 代码 · 共 89 行

H
89
字号
/*
* ==============================================================================
*  Name        : multiviewscontainer2.h
*  Part of     : MultiViews
*  Interface   :
*  Description :
*  Version     :
*
Copyright (c) 2004 - 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/



#ifndef __MULTIVIEWS_CONTAINER2_H__
#define __MULTIVIEWS_CONTAINER2_H__


// INCLUDES
#include <aknview.h>



// CLASS DECLARATION

/**
* CMultiViewsContainer2 container control class.
* An instance of CMultiViewsContainer2 contains the view drawn to the screen
* for CMultiViewsView2
*/
class CMultiViewsContainer2 : public CCoeControl
    {
    public:  // Constructors and destructor

        /**
        * NewL.
        * Two-phased constructor.
        * Create a CMultiViewsContainer2 object, which will draw itself to aRect.
        * @param aRect The rectangle this view will be drawn to.
        * @return a pointer to the created instance of CMultiViewsContainer1.
        */
        static CMultiViewsContainer2* NewL( const TRect& aRect );

        /**
        * NewLC.
        * Two-phased constructor.
        * Create a CMultiViewsContainer2 object, which will draw itself to aRect.
        * @param aRect The rectangle this view will be drawn to.
        * @return a pointer to the created instance of CMultiViewsContainer2.
        */
        static CMultiViewsContainer2* NewLC( const TRect& aRect );

        /**
        * ConstructL
        * 2nd phase constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL( const TRect& aRect );

    public: // from CoeControl

        /**
        * CountComponentControls
        * @return number of controls inside this container.
        */
        TInt CountComponentControls() const;

        /**
        * ComponentControl
        * @param Index number of the control.
        * @return Pointer of controls inside this container.
        */
        CCoeControl* ComponentControl( TInt aIndex ) const;

        /**
        * Draw
        * Draw this CMultiViewsContainer1 to the screen.
        * @param aRect the rectangle of this view that needs updating
        */
        void Draw( const TRect& aRect ) const;

    };

#endif // __MULTIVIEWS_CONTAINER2_H__

// End of File

⌨️ 快捷键说明

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