listbox.h
来自「0S9.平台任务管理.内存监控示例.还sign后才可以安装」· C头文件 代码 · 共 51 行
H
51 行
#ifndef LISTBOX_H
#define LISTBOX_H
#include <eikclb.h> // CEikColumnListBox
#include <eiklbo.h> // MEikListBoxObserver
class CSingleListBox : public CEikColumnListBox, public MListBox
{
public:
void ConstructL(CCoeControl* aParent, TInt aFlags = 0);
TInt CurrentItemIndex() const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
void RefreshL();
void SetContainerWindowL(const CCoeControl& aContainer);
void SetItemList(MDesCArray* aTextArray, CArrayPtr<CGulIcon>* aIconArray);
void SetListBoxObserver(MEikListBoxObserver* aObserver);
void SetMopParent(MObjectProvider* aParent);
void SetRect(const TRect& aRect);
void SetScrollBarL();
void ShowScrollBarL(TBool aShow);
CEikListBox* This();
};
class CDoubleListBox : public CEikTextListBox, public MListBox
{
public:
void ConstructL(CCoeControl* aParent, TInt aFlags = 0);
TInt CurrentItemIndex() const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
void RefreshL();
void SetContainerWindowL(const CCoeControl& aContainer);
void SetItemList(MDesCArray* aTextArray, CArrayPtr<CGulIcon>* aIconArray);
void SetListBoxObserver(MEikListBoxObserver* aObserver);
void SetMopParent(MObjectProvider* aParent);
void SetRect(const TRect& aRect);
void SetScrollBarL();
void ShowScrollBarL(TBool aShow);
CEikListBox* This();
protected:
void CreateItemDrawerL();
private:
CArrayPtr<CGulIcon>* iIconArray;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?