GPStestView.h
上传用户:fudaml
上传日期:2013-05-28
资源大小:211k
文件大小:2k
源码类别:

GPS编程

开发平台:

Visual C++

  1. // GPStestView.h : interface of the CGPStestView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_GPSTESTVIEW_H__4E191D93_17BB_4E01_A0C3_7C31D931E1DA__INCLUDED_)
  5. #define AFX_GPSTESTVIEW_H__4E191D93_17BB_4E01_A0C3_7C31D931E1DA__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "_com.h"
  10. class CGPStestView : public CView
  11. {
  12. protected: // create from serialization only
  13. CGPStestView();
  14. DECLARE_DYNCREATE(CGPStestView)
  15. // Attributes
  16. public:
  17. CGPStestDoc* GetDocument();
  18. // Operations
  19. public:
  20. // Overrides
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CGPStestView)
  23. public:
  24. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  25. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  26. protected:
  27. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  28. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  29. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. bool bFirst;
  34. double y;
  35. double x;
  36. void DrawPoint( WPARAM wp, LPARAM lp );
  37. _com m_GPS;
  38. virtual ~CGPStestView();
  39. #ifdef _DEBUG
  40. virtual void AssertValid() const;
  41. virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43. protected:
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(CGPStestView)
  47. afx_msg void OnMenuCom1();
  48. afx_msg void OnMenuFromfile();
  49. afx_msg void OnMenuCom2();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. #ifndef _DEBUG  // debug version in GPStestView.cpp
  54. inline CGPStestDoc* CGPStestView::GetDocument()
  55.    { return (CGPStestDoc*)m_pDocument; }
  56. #endif
  57. /////////////////////////////////////////////////////////////////////////////
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_GPSTESTVIEW_H__4E191D93_17BB_4E01_A0C3_7C31D931E1DA__INCLUDED_)