tray.cpp

来自「我要下载源代码我要源代码我要下载代码我要下载源代码」· C++ 代码 · 共 34 行

CPP
34
字号
// Tray.cpp: implementation of the CTray class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Hanoi.h"
#include "Tray.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CTray::CTray(int width)
{
	m_nHalfWidth = width;
}

CTray::~CTray()
{

}

void  CTray::Draw(CDC *pDC, CPoint ptCenter)
{
	pDC->MoveTo(ptCenter.x - m_nHalfWidth, ptCenter.y );
	pDC->LineTo(ptCenter.x + m_nHalfWidth, ptCenter.y );

}

⌨️ 快捷键说明

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