robotView.h
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:3k
源码类别:

VC书籍

开发平台:

Visual C++

  1. // robotView.h : interface of the CRobotView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_ROBOTVIEW_H__46914073_32D2_46D4_BE20_0B7FE4036D82__INCLUDED_)
  5. #define AFX_ROBOTVIEW_H__46914073_32D2_46D4_BE20_0B7FE4036D82__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define mymessage WM_USER + 1001
  10. #define mymessage2 WM_USER + 1003
  11. class CRobotView : public CFormView
  12. {
  13. protected: // create from serialization only
  14. CRobotView();
  15. DECLARE_DYNCREATE(CRobotView)
  16. public:
  17. //{{AFX_DATA(CRobotView)
  18. enum { IDD = IDD_ROBOT_FORM };
  19. // CEdit m_edit1;
  20. CLabel m_link;
  21. CLabel m_ml;
  22. CLabel m_workpart;
  23. CLabel m_command;
  24. CLabel m_static;
  25. CLabel m_buchangshu;
  26. CLabel m_buchang;
  27. CLabel m_sudu;
  28. CLabel m_zhuangtai;
  29. //}}AFX_DATA
  30. // Attributes
  31. public:
  32. CRobotDoc* GetDocument();
  33. volatile HWND m_h1;
  34. void ProcessMessage(WPARAM, LPARAM);
  35. void ProcessMyMessage();
  36. void SuduDisplay(int n);
  37. void GzqDisplay(int n);
  38. void Execute(int n);
  39. void home();
  40. void Execute_1(unsigned char a,unsigned char b,unsigned char c,unsigned char d,int e);
  41. int m_ncomand1;
  42. int m_nsudu,m_nsum,m_nmsg[5],m_njishu,m_ndelay;
  43. int m_ngzq;
  44. bool m_bflag,m_recflag,m_failflag;
  45. int nLength;
  46. unsigned char m_nguanjie,m_nfangxiang;
  47. CBrush m_brush;
  48. // Operations
  49. public:
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CRobotView)
  53. public:
  54. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  55. virtual void OnInitialUpdate();
  56. protected:
  57. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  58. virtual void OnDraw(CDC* pDC);
  59. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  60. //}}AFX_VIRTUAL
  61. // Implementation
  62. public:
  63. virtual ~CRobotView();
  64. #ifdef _DEBUG
  65. virtual void AssertValid() const;
  66. virtual void Dump(CDumpContext& dc) const;
  67. #endif
  68. protected:
  69. // Generated message map functions
  70. protected:
  71. //{{AFX_MSG(CRobotView)
  72. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  73. afx_msg void OnTimer(UINT nIDEvent);
  74. //}}AFX_MSG
  75. afx_msg LRESULT OnCommNotify(WPARAM wParam, LPARAM lParam);
  76. DECLARE_MESSAGE_MAP()
  77. };
  78. #ifndef _DEBUG  // debug version in robotView.cpp
  79. inline CRobotDoc* CRobotView::GetDocument()
  80.    { return (CRobotDoc*)m_pDocument; }
  81. #endif
  82. /////////////////////////////////////////////////////////////////////////////
  83. //{{AFX_INSERT_LOCATION}}
  84. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  85. #endif // !defined(AFX_ROBOTVIEW_H__46914073_32D2_46D4_BE20_0B7FE4036D82__INCLUDED_)