multiviewsappview.h

来自「Symbian OS 源码:一个基于Symbian OS UI上面的标准VIEW」· C头文件 代码 · 共 79 行

H
79
字号
/* Copyright (c) 2004, Nokia. All rights reserved */


#ifndef __MULTIVIEWS_APPVIEW_H__
#define __MULTIVIEWS_APPVIEW_H__


// INCLUDES
#include <coecntrl.h>



// CLASS DECLARATION

/**
* CMultiViewsAppView container control class.
* An instance of the Application View object for the
* example application MultiViews
*/
class CMultiViewsAppView : public CCoeControl
    {
public:     // Constructors and destructor


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

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


        /**
        * ~CMultiViewsAppView
        * Virtual Destructor.
        */
        virtual ~CMultiViewsAppView();


public:  // from CCoeControl

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


private: // Constructors and destructor


        /**
        * ConstructL
        * 2nd phase constructor.
        * @param aRect the rectangle this view will be drawn to.
        */
        void ConstructL( const TRect& aRect );

        /**
        * CMultiViewsAppView.
        * C++ default constructor.
        */
        CMultiViewsAppView();
    };

#endif // __MULTIVIEWS_APPVIEW_H__

⌨️ 快捷键说明

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