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

📄 graph.h

📁 过程的c++编译器 里面有超级玛丽的源代码 还有一个 管理系统的源代码
💻 H
字号:
#ifndef _GRAPH_H_FILE_INCLUDED_

#define _GRAPH_H_FILE_INCLUDED_

#include <windows.h>
#pragma warning(disable:4786)

class CGraph
{
public:
	void UnInit();
	void Init(HWND hWnd);
	void Refresh();
	int ** GetImageBuf();
	HDC GetMemDC();
	void ShowText(int x,int y,const char * Text,int Colour);
private:
	HWND m_hWnd;//在该窗体上显示图像
	HDC m_MemDC;//图像先绘制到该内存DC,再显示到窗体
	HGDIOBJ m_OldBitmap;//内存DC原有的位图
	int * m_BitData[256];//内存DC的图像数据
};

#endif

⌨️ 快捷键说明

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