📄 listbox.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -