summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemEdit.h
blob: 3bbc31cfe8c82a5390226be15b7f73ac2bcf735c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef T2DLL_T2DLGITEMEDIT_H
#define T2DLL_T2DLGITEMEDIT_H
#include "../common.h"
#include "T2DlgItem.h"

class AFX_CLASS_EXPORT T2DlgItemEdit : public T2DlgItem {
public:
	T2DlgItemEdit(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
	virtual ~T2DlgItemEdit();
	virtual void SetFont(HFONT inFont);
	virtual void CreateSubItem(void* inData);
	virtual void GetDescriptor(CString& outStr) const;
	virtual void SetDescriptor(const CString& inStr);
	virtual int GetValue();
	virtual void SetValue(int inValue);
	virtual void OnT2SetFocus(CWnd* inWnd);
	virtual void OnT2KillFocus(CWnd* inWnd);
	virtual void OnT2DlgItemEnable(BOOL inEnable);
	void SelectAll();
protected:
	virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC);

	CEditWFocus *mSubItem;
};
#endif