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

📄 l_tiao.cpp

📁 用MFC做的简单的俄罗斯方块。功能都已经实现。但是没有考虑算法。希望大家指教。
💻 CPP
字号:
// L_tiao.cpp: implementation of the L_tiao class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "aa.h"
#include "L_tiao.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

L_tiao::L_tiao()
{

}

L_tiao::~L_tiao()
{

}

void L_tiao::Draw(CDC *pDC, CDC *pDisplayMemDC)
{
	Drawbutton(x,y,pDC, pDisplayMemDC);
	Drawbutton(x,y+height,pDC, pDisplayMemDC);
	Drawbutton(x,y+height*2,pDC, pDisplayMemDC);
	Drawbutton(x-height,y+height*2,pDC, pDisplayMemDC);
}

void L_tiao::Draw1(CDC *pDC, CDC *pDisplayMemDC)
{
	Drawbutton(x+height*2,y,pDC, pDisplayMemDC);
	Drawbutton(x+height*2,y+height,pDC, pDisplayMemDC);
	Drawbutton(x,y,pDC, pDisplayMemDC);
	Drawbutton(x+height,y,pDC, pDisplayMemDC);
}

void L_tiao::Draw2(CDC *pDC, CDC *pDisplayMemDC)
{
	Drawbutton(x,y,pDC, pDisplayMemDC);
	Drawbutton(x,y+height,pDC, pDisplayMemDC);
	Drawbutton(x,y+height*2,pDC, pDisplayMemDC);
	Drawbutton(x+height,y,pDC, pDisplayMemDC);
}

void L_tiao::Draw3(CDC *pDC, CDC *pDisplayMemDC)
{
	Drawbutton(x+height*2,y,pDC, pDisplayMemDC);
	Drawbutton(x,y-height,pDC, pDisplayMemDC);
	Drawbutton(x,y,pDC, pDisplayMemDC);
	Drawbutton(x+height,y,pDC, pDisplayMemDC);
}

⌨️ 快捷键说明

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