registview.h

来自「symbian控件的利用」· C头文件 代码 · 共 93 行

H
93
字号
/*
* ============================================================================
*  Name     : CRegistView from CAknView
*  Part of  : Regist
*  Copyright (c) 2003 Nokia. All rights reserved.
* ============================================================================
*/

#ifndef REGISTVIEW_H
#define REGISTVIEW_H

// INCLUDES
#include <aknview.h>

// CONSTANTS
// UID of view
const TUid KViewId1 = {1};

// FORWARD DECLARATIONS
class CRegistContainer;

// CLASS DECLARATION

/**
*  CRegistView view class.
* 
*/
class CRegistView : public CAknView
    {
    public: // Constructors and destructor
		static CRegistView* NEWL();
		static CRegistView* NEWLC();
        /**
        * C++ default constructor
        */
        CRegistView();

        /**
        * EPOC default constructor.
        */
        void ConstructL();

        /**
        * Destructor.
        */
        virtual ~CRegistView();

    public: // Functions from base classes
        
		void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
        /**
        * From CAknView, Returns the ID of view.
        * @return Returns the ID of view.
        */
        TUid Id() const;

        /**
        * From CAknView, Handles the commands.
        * @pram aCommand Command to be handled.
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CAknView, Handles the clientrect.
        */
        void HandleClientRectChange();

    private:

        /**
        * From CAknView, Creates the Container class object.
        * @param aPrevViewId This is not used now.
        * @param aCustomMessage This is not used now.
        * @param aCustomMessage This is not used now.
        */
        void DoActivateL(const TVwsViewId& /*aPrevViewId*/,
                         TUid /*aCustomMessageId*/,
                         const TDesC8& /*aCustomMessage*/);

        /**
        * From AknView, Deletes the Container class object.
        */
        void DoDeactivate();

    private: // Data
        CRegistContainer* iContainer;
		TInt m_nMenuFlag;
    };

#endif  // REGISTVIEW_H

// End of File

⌨️ 快捷键说明

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