#pragma once #include "common.h" #include "T2DlgItem.h" class AFX_EXT_CLASS T2TreasurePane : public T2DlgItem { public: T2TreasurePane(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2TreasurePane(); virtual void SpendTime(); virtual void DrawSelf(CDC* pDC); void SetAnimPics(T2TowerDoc* inDoc, int inID1, int inID2); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); virtual int OnCreate(CREATESTRUCT* inCreateStruct); T2BitImage *mImages[2]; int mCurrentImage; DWORD mLastChangeAt; };