#pragma once #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; };