GpsSCView.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:6k
- // GpsSCView.h : interface of the CGpsSCView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GPSSCVIEW_H__58804DEF_631B_11D8_B346_0060975FFAEE__INCLUDED_)
- #define AFX_GPSSCVIEW_H__58804DEF_631B_11D8_B346_0060975FFAEE__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //Class head file
- #include "GpsDrawMap.h"
- #include "ProcSM.h"
- class CGpsSCView : public CScrollView
- {
- protected: // create from serialization only
- CGpsSCView();
- DECLARE_DYNCREATE(CGpsSCView)
- // Attributes
- public:
- CGpsSCDoc* GetDocument();
- // Operations
- public:
- BOOL password;
- void DrawMap(CDC *pDC);
- public:
- void SendGXGY(CString strGX,CString strGY,CString strVehicleNO = "",CString strTelNumber = "",BYTE IsSimulate = 0);
- double CovertStdNE(CString StrNE);
- void TrackDispData(CPoint point);
- void CovertDFS(double LongNE,int *Angle,int *Minute,int *Second);
- void StatusPrompt(CString pmt,UINT uID);
- void SetCommonUserTelNo(CString);
- void CheckMousePointInList(CPoint point);
- void MoveScroll(); //移动滚动条
- void InvalidRect(double gx, double gy);
- void MoveFatMap(CPoint point);
- void DrawMoveRect(CPoint point);;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CGpsSCView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void OnShowconnetDlg();
- BOOL m_bSocketConnect;
- virtual ~CGpsSCView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- public:
- CToolTipCtrl m_ToolTip; //工具提示对象
- CProcSM procSM;
- CGpsSCDoc *m_pDoc;
- CGpsDrawMap m_cDrawMap;
- BOOL flag_usertype;
- bool m_bDispSignPoint;
- bool m_bDispSignPic;
- bool m_bSearchBestRoad;
- bool m_bDispBusRoad;
- bool m_bSearchSignbyRegion;
- int m_nx;
- int m_ny;
- CDC m_DC;
- bool m_bMapIsDrawed;
- BOOL m_bDrawMap;
- CPoint m_pRBDownPoint;
- bool m_bMoveFatMap;
- bool m_bLButtomDown;
- int m_nVMove,m_nHMove;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CGpsSCView)
- afx_msg LRESULT OnCommNotify(WPARAM wParam, LPARAM lParam);
- afx_msg void OnTest();
- afx_msg void OnUpdateTest(CCmdUI* pCmdUI);
- afx_msg void OnUpdateSetjknumber(CCmdUI* pCmdUI);
- afx_msg void OnSinulatedriver();
- afx_msg void OnUpdateSinulatedriver(CCmdUI* pCmdUI);
- afx_msg void OnCconnetComm();
- afx_msg void OnRefresh();
- afx_msg void OnUpdateRefresh(CCmdUI* pCmdUI);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnMzoomDown();
- afx_msg void OnUpdateMzoomDown(CCmdUI* pCmdUI);
- afx_msg void OnMzoomUp();
- afx_msg void OnUpdateMzoomUp(CCmdUI* pCmdUI);
- afx_msg void OnOpenlock();
- afx_msg void OnGetvehicleposition();
- afx_msg void OnSetlock();
- afx_msg void OnShutoil();
- afx_msg void OnSetpassword();
- afx_msg void OnSendnormalsm();
- afx_msg void OnSendinfotogroup();
- afx_msg void OnSelectUserType();
- afx_msg void OnAutomonitor();
- afx_msg void OnGethelp();
- afx_msg void OnMdispSignPoint();
- afx_msg void OnUpdateMdispSignPoint(CCmdUI* pCmdUI);
- afx_msg void OnMsearchSignByRegion();
- afx_msg void OnUpdateMsearchSignByRegion(CCmdUI* pCmdUI);
- afx_msg void OnMsearchBestRoad();
- afx_msg void OnUpdateMsearchBestRoad(CCmdUI* pCmdUI);
- afx_msg void OnFindmessage();
- afx_msg void OnUpdateAutomonitor(CCmdUI* pCmdUI);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnUpdateGetvehicleposition(CCmdUI* pCmdUI);
- afx_msg void OnUpdateSetlock(CCmdUI* pCmdUI);
- afx_msg void OnUpdateShutoil(CCmdUI* pCmdUI);
- afx_msg void OnUpdateGethelp(CCmdUI* pCmdUI);
- afx_msg void OnUpdateOpenlock(CCmdUI* pCmdUI);
- afx_msg void OnUpdateSendnormalsm(CCmdUI* pCmdUI);
- afx_msg void OnUpdateSendinfotogroup(CCmdUI* pCmdUI);
- afx_msg void OnUpdateSelecttype(CCmdUI* pCmdUI);
- afx_msg void OnUpdateChangeuserpassword(CCmdUI* pCmdUI);
- afx_msg void OnUpdateSetpassword(CCmdUI* pCmdUI);
- afx_msg void OnCdisconnetComm();
- afx_msg void OnUpdateCdisconnetComm(CCmdUI* pCmdUI);
- afx_msg void OnCancelautomonitor();
- afx_msg void OnUpdateCancelautomonitor(CCmdUI* pCmdUI);
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnPopFresh();
- afx_msg void OnUpdatePopFresh(CCmdUI* pCmdUI);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnMsearchSign();
- afx_msg void OnUpdateMsearchSign(CCmdUI* pCmdUI);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnCconnectCom();
- afx_msg void OnUpdateCconnectCom(CCmdUI* pCmdUI);
- afx_msg void OnCancelCurrMonitorCar();
- afx_msg void OnUpdateCancelCurrMonitorCar(CCmdUI* pCmdUI);
- afx_msg void OnSetCurrMonitorCar();
- afx_msg void OnUpdateSetCurrMonitorCar(CCmdUI* pCmdUI);
- afx_msg void OnUpdateCconnetComm(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- // afx_msg LRESULT OnCommNotify(WPARAM wParam, LPARAM lParam);
- // afx_msg void OnUpdateSocketclose(CCmdUI* pCmdUI);
- #ifndef _DEBUG // debug version in GpsSCView.cpp
- inline CGpsSCDoc* CGpsSCView::GetDocument()
- { return (CGpsSCDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_GPSSCVIEW_H__58804DEF_631B_11D8_B346_0060975FFAEE__INCLUDED_)