?? seat.h
字號:
// Seat.h: interface for the CSeat class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SEAT_H__9EF1838F_4B16_11D6_AAE6_B74EAB06404E__INCLUDED_)
#define AFX_SEAT_H__9EF1838F_4B16_11D6_AAE6_B74EAB06404E__INCLUDED_
#include "Tray.h"
#define MAX 10 // 最多盤子個數
#define DELAY 20 // ms
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSeat
{
public:
CSeat(){}
CSeat(CString name, int x, int y,int trayNumber, int halfWidth=80);
virtual ~CSeat();
void Draw(CDC *pDC);
void DrawTray(CDC *pDC);
void MoveTo(CDC *pDC, CSeat * to);
void MoveHorizental(CDC *pDC, CTray *moveTray, int y, int x1, int x2);
void MoveVirtical(CDC *pDC, CTray *moveTray, int x, int y1, int y2);
bool Valid( CSeat * to);
public:
CString m_strName;
CPoint m_ptPosition; //位置中心點
int m_nTrayNumber; //位置的盤子數
int m_nHalfWidth; //位置寬度的一半
int m_nHight; //針的高度
CTray *m_pTray[MAX]; //位置上盤子的指針
};
#endif // !defined(AFX_SEAT_H__9EF1838F_4B16_11D6_AAE6_B74EAB06404E__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -