aknexgridviewasmenu.h

来自「symbian ui的 例子 初学者可以 好好看看,这个是培训的资料,应该比较宝」· C头文件 代码 · 共 109 行

H
109
字号
/* Copyright (c) 2005, Nokia. All rights reserved */

#ifndef __AKNEXGRIDVIEWASMENU_H__
#define __AKNEXGRIDVIEWASMENU_H__

// INCLUDES
#include <aknview.h>

// CONSTANTS
const TUid KViewMenuId = { 3 }; // UID of view

// FORWARD DECLARATIONS
class CAknExGridContainerAsMenu;

// CLASS DECLARATION
/**
*  CAknExGridViewAsMenu view class.
*
*/
class CAknExGridViewAsMenu : public CAknView
    {
    public: // Constructors and destructor

        /**
        * NewL.
        * Two-phased constructor.
        * Construct a CAknExGridViewAsMenu using two phase construction,
        * and return a pointer to the created object
        * @return A pointer to the created instance of CAknExGridViewAsMenu.
        */
        static CAknExGridViewAsMenu* NewL();

        /**
        * NewLC.
        * Two-phased constructor.
        * Construct a CAknExGridViewAsMenu using two phase construction,
        * and return a pointer to the created object
        * @return A pointer to the created instance of CAknExGridViewAsMenu.
        */
        static CAknExGridViewAsMenu* NewLC();

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

    public: // Functions from base classes

        /**
        * From CAknView, Id.
        * Returns the ID of view.
        * @return The ID of view.
        */
        TUid Id() const;

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

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

    private: // Constructors

        /**
        * ConstructL.
        * 2nd phase constructor.
        */
        void ConstructL();

    private: // Functions from base classes

        /**
        * From CAknView, DoActivateL.
        * Creates the Container class object.
        * @param aPrevViewId Specified TVwsViewId.
        * @param aCustomMessageId Specified TUid.
        * @param aCustomMessage Specified custom message.
        */
        void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
            const TDesC8& aCustomMessage );

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

    private: // Data

        /**
        * iContainer, container for this view
        * Owned by CAknExGridViewAsMenu object.
        */
        CAknExGridContainerAsMenu* iContainer;

    };

#endif  // __AKNEXGRIDVIEWASMENU_H__

// End of File

⌨️ 快捷键说明

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