⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aknexgridviewasmenu.h

📁 symbian 格子的生成和使用源代码 让你明白九宫格生成原理 适合游戏开发
💻 H
字号:
/* Copyright (c) 2004, 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -