#pragma once #include "common.h" #include "T2DlgItem.h" class AFX_EXT_CLASS T2DlgItemImage : public T2DlgItem { public: T2DlgItemImage(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual int Create(const char* inName, DWORD inStyle, const RECT& inRect, CWnd* inParentWnd, UINT inID); void AdjustSize(); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); T2BitImage* GetDrawImage(CRect& outRect) const; };