#ifndef T2DLL_T2DLGITEMANIMATION_H #define T2DLL_T2DLGITEMANIMATION_H #include "../common.h" #include "T2DlgItem.h" class AFX_CLASS_EXPORT T2DlgItemAnimation : public T2DlgItem { public: T2DlgItemAnimation(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2DlgItemAnimation(); void SetAnimation(HINSTANCE inModule, int inResID, int unk); void SetAnimationParam(int inDelay, int inStartFrame); protected: virtual BOOL OnT2DlgItemEraseBkgnd(CDC*); virtual int OnT2DlgItemCreate(CREATESTRUCT*); virtual void OnT2Close(); virtual void OnT2Timer(UINT); T2BitImage *mBitImage; T2ImageObj *mImageObj; int mCurrentFrame; int mStartFrame; int mDelay; BOOL mTimerCreated; }; #endif