summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemListBox.h
blob: e506c2b4a39cad4eecccb69e3ac32cd9479e3325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "common.h"
#include "T2DlgItem.h"

class AFX_CLASS_EXPORT 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;
};