wecome to my elevator calling system  

project             name: elevator calling system
project               role: leader and main  developer
project     technique: vs 2005 ,c/c++,MFC
project introduction: now there are 5 elevators ,but many people want to use it .how to distribute the elevators is very important for the customers who don't want to wait for long time .
project  core   code:
#pragma once
class CmyEleveatotView : public CView
{
protected: // create from serialization only
 CmyEleveatotView();
 DECLARE_DYNCREATE(CmyEleveatotView)

// Attributes
public:
 CmyEleveatotDoc* GetDocument() const;

// Operations
public:

// Overrides
public:
 virtual void OnDraw(CDC* pDC);  // overridden to draw this view
 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementation
public:
 virtual ~CmyEleveatotView();
#ifdef _DEBUG
 virtual void AssertValid() const;
 virtual void Dump(CDumpContext& dc) const;
#endif
public:

 CButton m_Elevator1Butt[21];
   //第一个电梯内部的按钮
 CButton m_Elevator2Butt[21];
    //第二个电梯内部的按钮
 CButton m_Elevator3Butt[21];
    //第三个电梯内部的按钮
 CButton m_Elevator4Butt[21];
 //第四个电梯内部的按钮
 CButton m_Elevator5Butt[21];
 //第五个电梯内部的按钮
 CButton m_LayorButtUP[20];
    //楼层上的方向向上的按钮
 CButton m_LayorButtDOWN[21];
 //楼层上的方向向下的按钮
    CDC *m_ClientDC;
    bool m_bStart;
// Generated message map functions
protected:
 DECLARE_MESSAGE_MAP()
public:
 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
 void OnLayorButtUPDown(UINT nID);
 void OnLayorButtDOWNDown(UINT nID);
 void OnElevator1Down(UINT nID);
 void OnElevator2Down(UINT nID);
 void OnElevator3Down(UINT nID);
 void OnElevator4Down(UINT nID);
 void OnElevator5Down(UINT nID);
 ///////

public:
 afx_msg void OnFileGh();
public:
 afx_msg void OnClose();
};



 
Make a Free Website with Yola.