⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitmaptool.h

📁 一个用vc做的挖金子的游戏
💻 H
字号:
#ifndef __BITMAPTOOL
#define __BITMAPTOOL

#include "filereport.h"

class MYBITMAP
{
public:
	MYBITMAP()
	{
		framenow=0;
		iStartAni=0;
	}
	MYBITMAP(int w,int h):screenwidth(w),screenheight(h)
	{
		framenow=0;
		iStartAni=0;
	}
	~MYBITMAP();
	void Init(HINSTANCE hInstance,int iResource,int row,int col);
	void SetDC(HDC hdest,HDC hsrc);
	void Show(int x,int y,int iFrame);
	void ShowFramesNoBack(int x,int y,int iFrameNum);
	void ShowCenter(int y,int iFrame);
	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);
	
	int MouseOver(int x,int y);
	int MouseOut(int x,int y);
	int DetectMouseMove(int x,int y);
	int DetectMouseUp(int x,int y);
	
	//动画播放
	void ShowAni();
	void SetAni(int x,int y);
	
//	FILEREPORT f;
	HBITMAP hBm;
private:
	//按照行列平均分成几个
	int inum;
	int jnum;

	int width;
	int height;
	int screenwidth;
	int screenheight;
	HDC hdcdest;
	HDC hdcsrc;	

	//当前位置
	int xpos;
	int ypos;
	int framenow;

	int iStartAni;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -