?? dynamiclistcontainer.h
字號(hào):
#ifndef DYNAMICLISTCONTAINER_H
#define DYNAMICLISTCONTAINER_H
// INCLUDES
// System includes
#include <badesca.h> // CDesCArray
#include <coecntrl.h> // CCoeControl
#include <eiklbo.h> // MEikListBoxObserver
// FORWARD DECLARATIONS
class CAknColumnListBox;
// CLASS DECLARATION
/**
*
* @class CDynamicListContainer DynamicListContainer.h
* @brief This is the container class for a list example based on the
* standard Symbian OS architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*
*/
class CDynamicListContainer : public CCoeControl, MEikListBoxObserver
{
public: // Constructors and destructor
static CDynamicListContainer* NewL(const TRect& aRect);
static CDynamicListContainer* NewLC(const TRect& aRect);
~CDynamicListContainer();
public: // members
void PlaySelectedGame();
void DeleteSelectedL();
private: // members
void SetupListItemsL();
void LoadSavedGamesL(CDesCArray& aSavedGamesArray);
void CreateListL();
void SetupListIconsL();
void SetupScrollBarsL();
private: // constructor
void ConstructL(const TRect& aRect);
private: // from MEikListBoxObserver
void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aListBoxEvent);
private: // from CoeControl
void SizeChanged();
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private: //data
CAknColumnListBox* iSavedGamesListBox; // the saved games list
};
#endif // #ifndef DYNAMICLISTCONTAINER_H
// End of File
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -