1 //bitmaptool
h #ifndef __BITMAPTOOL #define __BITMAPTOOL #include "filereport
h" #define BM_BOTTOM_RIGHT 0 #define BM_BOTTOM_CENTER 1 #define BM_CENTER 2 #define BM_USER 3 // class MYBITMAP { public: MYBITMAP(); ~MYBITMAP(); //初始化 void Init(HINSTANCE hInstance,int iResource,int row,int col); void SetDevice(HDC hdest,HDC hsrc,int wwin,int hwin); // void SetPos(int istyle,int x,int y); //显示 void Draw(DWORD dwRop); void Stretch(int x,int y); void Stretch(int x,int y,int id); void Show(int x,int y); void ShowCenter(int y); void ShowLoop(int left,int top,int right,int bottom,int iframe); void ShowNoBack(int x,int y,int iFrame); void ShowNoBackLoop(int x,int y,int iFrame,int iNum); //动画播放 void ShowAni(); void SetAni(int x,int y); // FILEREPORT f; HBITMAP hBm; public: //按照行列平均分成几个 int inum; int