#pragma once #include "common.h" #include "T2DlgItem.h" class AFX_EXT_CLASS T2DlgItemListBox : public T2DlgItem { public: T2DlgItemListBox(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2DlgItemListBox(); virtual void SetFont(HFONT); virtual void CreateSubItem(); virtual int GetCount(); virtual int ResetContent(); virtual int AddString(CString& inString); virtual int DeleteString(unsigned int inIndex); virtual int GetCurSel(); virtual int SetItemData(int inIndex, DWORD inData); virtual DWORD GetItemData(int inIndex); virtual int SetItemDataPtr(int inIndex, void* inData); virtual void* GetItemDataPtr(int inIndex); protected: CListBox *mListBox; };