mylistbox.h
来自「Symbian工程 九宫格界面」· C头文件 代码 · 共 70 行
H
70 行
#ifndef __MYLISTBOX_H__
#define __MYLISTBOX_H__
// INCLUDES
#include <aknview.h>
class CInputView;
class CMyListBoxContainer : public CCoeControl
{
void SnowCalcPoint(const TRect& aRect);
public:
CMyListBoxContainer();
virtual ~CMyListBoxContainer();
void ConstructL(const TRect& aRect);
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
void SetCurrentIndex(TInt& aIndex);
void SnowSetContent(const TDesC& aTitle);
void SnowSetTime(const TDesC& aTime);
void SnowGetIndex(TInt& aIndex);
void SizeChanged();
void SnowSetBackgroundColor(TRgb aColor);
void SnowSetPenColor(TRgb aColor);
void DelList();
TInt SnowSetListBoxCount()
{
return iSnowTimeArr.Count();
}
private:
void Draw( const TRect& aRect ) const;
private:
TInt iSnowChose;
TInt iSnowFirstCurrent;
RPointerArray<HBufC> iSnowTextArr;
RPointerArray<HBufC> iSnowTimeArr;
TInt iLineHeight;
TInt iTimeWidth;
TInt iStartTimeX;
TInt iStartTimeY;
TInt iStartTitleX;
TInt iStartY;
TInt iStartX;
TInt iTitleWidth;
TRgb iSnowBrushBackgroundColor;
TRgb iSnowPenColor;
};
#endif // __MyListBoxCONTAINER_H__
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?