~cpp class CmyAnimation{ protected: vector<UINT> m_frameList; int m_nowFrame; private: void init(){ m_nowFrame = 0; } public: CmyAnimation(){ init(); } void nextFrame(){ if(m_nowFrame < int(m_frameList.size())-1) m_nowFrame++; else m_nowFrame = 0; } int getFrameSize(){ return int(m_frameList.size()); } void addFrame(UINT ITEM){ m_frameList.push_back(ITEM); } virtual void drawFrame(CmyDouBuffDC* dc)=0; };