linkedmessageboxappview.h

来自「这是Symbian平台下软件里实现超链接的对话框,非常方便实用.只要点按下超链接」· C头文件 代码 · 共 84 行

H
84 行
字号
/*
============================================================================
 Name        : LinkedMessageboxView.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application view
============================================================================
*/

#ifndef __LINKEDMESSAGEBOXAPPVIEW_H__
#define __LINKEDMESSAGEBOXAPPVIEW_H__

// INCLUDES
#include <coecntrl.h>

// CLASS DECLARATION
class CLinkedMessageboxAppView : public CCoeControl
    {
    public: // New methods

        /**
        * NewL.
        * Two-phased constructor.
        * Create a CLinkedMessageboxAppView 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 CLinkedMessageboxAppView.
        */
        static CLinkedMessageboxAppView* NewL( const TRect& aRect );

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

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

    public:  // Functions from base classes

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

        /**
        * From CoeControl, SizeChanged.
        * Called by framework when the view size is changed.
        */
        virtual void SizeChanged();

    private: // Constructors

        /**
        * ConstructL
        * 2nd phase constructor.
        * Perform the second phase construction of a
        * CLinkedMessageboxAppView object.
        * @param aRect The rectangle this view will be drawn to.
        */
        void ConstructL(const TRect& aRect);

        /**
        * CLinkedMessageboxAppView.
        * C++ default constructor.
        */
        CLinkedMessageboxAppView();

    };

#endif // __LINKEDMESSAGEBOXAPPVIEW_H__

// End of File

⌨️ 快捷键说明

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