?? tray.cpp
字號:
// 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -