www.pudn.com > voice.rar > robotView.h


// robotView.h : interface of the CRobotView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_ROBOTVIEW_H__46914073_32D2_46D4_BE20_0B7FE4036D82__INCLUDED_) 
#define AFX_ROBOTVIEW_H__46914073_32D2_46D4_BE20_0B7FE4036D82__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#define mymessage WM_USER + 1001 
#define mymessage2 WM_USER + 1003 
class CRobotView : public CFormView 
{ 
protected: // create from serialization only 
	CRobotView(); 
	DECLARE_DYNCREATE(CRobotView) 
 
public: 
	//{{AFX_DATA(CRobotView) 
	enum { IDD = IDD_ROBOT_FORM }; 
//	CEdit	m_edit1; 
	CLabel	m_link; 
	CLabel	m_ml; 
	CLabel	m_workpart; 
	CLabel	m_command; 
	CLabel	m_static; 
	CLabel	m_buchangshu; 
	CLabel	m_buchang; 
	CLabel	m_sudu; 
	CLabel	m_zhuangtai; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CRobotDoc* GetDocument(); 
	volatile HWND m_h1; 
	void ProcessMessage(WPARAM, LPARAM); 
	void ProcessMyMessage(); 
	void SuduDisplay(int n); 
	void GzqDisplay(int n); 
	void Execute(int n); 
	void home(); 
	void Execute_1(unsigned char a,unsigned char b,unsigned char c,unsigned char d,int e); 
	int m_ncomand1; 
	int m_nsudu,m_nsum,m_nmsg[5],m_njishu,m_ndelay; 
	int m_ngzq; 
	bool m_bflag,m_recflag,m_failflag; 
	int nLength; 
	unsigned char m_nguanjie,m_nfangxiang; 
	CBrush m_brush; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CRobotView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnInitialUpdate(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnDraw(CDC* pDC); 
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CRobotView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CRobotView) 
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 
	afx_msg void OnTimer(UINT nIDEvent); 
	//}}AFX_MSG 
	afx_msg LRESULT OnCommNotify(WPARAM wParam, LPARAM lParam); 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in robotView.cpp 
inline CRobotDoc* CRobotView::GetDocument() 
   { return (CRobotDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ROBOTVIEW_H__46914073_32D2_46D4_BE20_0B7FE4036D82__INCLUDED_)