www.pudn.com > 模拟LIFT.rar > liftDlg.h
// liftDlg.h : header file
//
#if !defined(AFX_LIFTDLG_H__4D28CD43_943E_4AB6_9654_3711C09F834F__INCLUDED_)
#define AFX_LIFTDLG_H__4D28CD43_943E_4AB6_9654_3711C09F834F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyLift.h"
/////////////////////////////////////////////////////////////////////////////
// CLiftDlg dialog
class CLiftDlg : public CDialog
{
// Construction
public:
//add by fln 04-10
int CheckState(void);//判断电梯是否处于停的状态,如果是返回0;否则返回1;
void To(int Floor,bool up);//到第几层
void DownTo(int Floor,int state);//下到第几层
void UpTo(int Floor,int state);//上到第几层
void UpdateDlgView();//根据一些数据的变化,刷新界面
int iUpOrDownOrStop;//电梯运行状态,1为上,2为下,0为停
void UpDown();//扫描电梯状态,进入相应上下操作
MyLift lift;//建一个电梯类的实例
CLiftDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CLiftDlg)
enum { IDD = IDD_LIFT_DIALOG };
int m_PresentFloor;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLiftDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CLiftDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
afx_msg void OnButton5();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnButton8();
afx_msg void OnButton9();
afx_msg void OnButton10();
afx_msg void OnButton11();
afx_msg void OnButton12();
afx_msg void OnButton13();
afx_msg void OnButton14();
afx_msg void OnButton15();
afx_msg void OnButton16();
afx_msg void OnButton17();
afx_msg void OnButton18();
afx_msg void OnButton19();
afx_msg void OnButton20();
afx_msg void OnButton21();
afx_msg void OnButton22();
afx_msg void OnButton23();
afx_msg void OnButton24();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LIFTDLG_H__4D28CD43_943E_4AB6_9654_3711C09F834F__INCLUDED_)