📄 aknexgridviewasmenu.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 + -