aknexgridviewasmarkableselection.h

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

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

#ifndef __AKNEXGRIDVIEWASMARKABLESELECTION_H__
#define __AKNEXGRIDVIEWASMARKABLESELECTION_H__

// INCLUDES
#include <aknview.h>

// CONSTANTS
const TUid KViewMarkableSelectionId = { 4 }; // UID of view

// FORWARD DECLARATIONS
class CAknExGridContainerAsSelection;

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

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

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

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

    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();

        /**
        * From MEikMenuObserver, DynInitMenuPaneL().
        * Sets the state of menu items.
        * @param aResourceId Menu pane resource ID.
        * @param aMenuPane Menu pane pointer.
        */
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

    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 CAknExGridViewAsMarkableSelection object.
        */
        CAknExGridContainerAsSelection* iContainer;

    };

#endif  // __AKNEXGRIDVIEWASMARKABLESELECTION_H__

// End of File

⌨️ 快捷键说明

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