?? 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 + -