📄 mapappview.h
字号:
// MapAppView.h : interface of the CMapAppView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPAPPVIEW_H__9B0AF001_69DE_11D5_A8BB_0000E8E7DC45__INCLUDED_)
#define AFX_MAPAPPVIEW_H__9B0AF001_69DE_11D5_A8BB_0000E8E7DC45__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ReceiveData.h"
struct NETDATA
{
double x;
double y;
};
class CMapAppView : public CView
{
protected: // create from serialization only
CMapAppView();
DECLARE_DYNCREATE(CMapAppView)
// Attributes
public:
CMapAppDoc* GetDocument();
CReceiveData m_receivedata; //接收数据变量
unsigned long m_lWindowid; //地图窗口标识
HWND m_hWindowHwnd; //地图窗口句柄
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMapAppView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
void ShowMapLine();
// Implementation
public:
virtual ~CMapAppView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMapAppView)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
afx_msg void OnReceiveData(WPARAM m_Wparam, LPARAM m_lparam);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MapAppView.cpp
inline CMapAppDoc* CMapAppView::GetDocument()
{ return (CMapAppDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAPAPPVIEW_H__9B0AF001_69DE_11D5_A8BB_0000E8E7DC45__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -