📄 mycolumnlistboxappview.h
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#ifndef __MYCOLUMNLISTBOX_APPVIEW_H__
#define __MYCOLUMNLISTBOX_APPVIEW_H__
#include <coecntrl.h>
#include <aknview.h>
#include <eiklbo.h>
#include <coecntrl.h>
class CDreamColumnListBox;
/*!
@class CMyColumnListBoxAppView
@discussion An instance of this class is the Application View object
for the MyColumnListBox example application
*/
class CMyColumnListBoxAppView : public CAknView , MCoeControlObserver, MEikListBoxObserver
{
public:
/*!
@function NewL
@discussion Create a CMyColumnListBoxAppView object, which will draw itself to aRect
@param aRect The rectangle this view will be drawn to
@result A pointer to the created instance of CMyColumnListBoxAppView
*/
static CMyColumnListBoxAppView* NewL(const TRect& aRect);
/*!
@function NewLC
@discussion Create a CMyColumnListBoxAppView object, which will draw itself to aRect
@param aRect The rectangle this view will be drawn to
@result A pointer to the created instance of CMyColumnListBoxAppView
*/
static CMyColumnListBoxAppView* NewLC(const TRect& aRect);
/*!
@function ~CMyColumnListBoxAppView
@discussion Destroy the object
*/
~CMyColumnListBoxAppView();
public: // from CCoeControl
/*!
@function Id
@discussion Identity of this view to the system
@result the ID of view
*/
TUid Id() const;
/*!
@function Draw
@discussion Draw this CMyColumnListBoxAppView to the screen
@param aRect The rectangle of this view that needs updating
*/
// void Draw(const TRect& aRect) const;
private:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CMyColumnListBoxAppView object
@param aRect The rectangle this view will be drawn to
*/
void ConstructL(const TRect& aRect);
TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
void HandleListBoxEventL(CEikListBox* aListBox,TListBoxEvent aListBoxEvent);
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
/*!
@function CMyColumnListBoxAppView
@discussion Perform the first phase of two phase construction
*/
CMyColumnListBoxAppView();
/*!
@function HandleCommandL
@discussion Handle commands
@param aCommand Command to be handled
*/
void HandleCommandL(TInt aCommand);
/*!
@function DoActivateL
@discussion Create the Container class object
@param aPrevViewId The id of the previous view
@param aCustomMessageId message identifier
@param aCustomMessage custom message provided when the view is changed
*/
void DoActivateL(const TVwsViewId& aPrevViewId,
TUid aCustomMessageId,
const TDesC8& aCustomMessage);
/*!
@function DoDeactivate
@discussion Remove the container class instance from the App UI's stack and
deletes the instance
*/
void DoDeactivate();
private:
CDreamColumnListBox* iBox;
CFont* iFont;
TRect iRect;
};
#endif // __MYCOLUMNLISTBOX_APPVIEW_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -