📄 square.cpp
字号:
// Square.cpp: implementation of the Square class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "aa.h"
#include "Square.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Square::Square()
{
}
Square::~Square()
{
}
void Square::Draw(CDC *pDC, CDC *pDisplayMemDC)
{
Drawbutton(x,y,pDC, pDisplayMemDC);
Drawbutton(x,y+height,pDC, pDisplayMemDC);
Drawbutton(x+height,y,pDC, pDisplayMemDC);
Drawbutton(x+height,y+height,pDC, pDisplayMemDC);
}
void Square::Draw1(CDC *pDC, CDC *pDisplayMemDC)
{
Drawbutton(x,y,pDC, pDisplayMemDC);
Drawbutton(x,y+height,pDC, pDisplayMemDC);
Drawbutton(x+height,y,pDC, pDisplayMemDC);
Drawbutton(x+height,y+height,pDC, pDisplayMemDC);
}
void Square::Draw2(CDC *pDC, CDC *pDisplayMemDC)
{
Drawbutton(x,y,pDC, pDisplayMemDC);
Drawbutton(x,y+height,pDC, pDisplayMemDC);
Drawbutton(x+height,y,pDC, pDisplayMemDC);
Drawbutton(x+height,y+height,pDC, pDisplayMemDC);
}
void Square::Draw3(CDC *pDC, CDC *pDisplayMemDC)
{
Drawbutton(x,y,pDC, pDisplayMemDC);
Drawbutton(x,y+height,pDC, pDisplayMemDC);
Drawbutton(x+height,y,pDC, pDisplayMemDC);
Drawbutton(x+height,y+height,pDC, pDisplayMemDC);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -