controlview.cpp
来自「mapx在vc.net上的应用框架」· C++ 代码 · 共 64 行
CPP
64 行
// ControlView.cpp : 实现文件
//
#include "stdafx.h"
#include "MakeRoads.h"
#include "ControlView.h"
#include "MainFrm.h"
#include "mapview.h"
// CControlView
IMPLEMENT_DYNCREATE(CControlView, CFormView)
CControlView::CControlView()
: CFormView(CControlView::IDD)
, pMapX(NULL)
{
}
CControlView::~CControlView()
{
}
void CControlView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CControlView, CFormView)
ON_WM_PAINT()
END_MESSAGE_MAP()
// CControlView 诊断
#ifdef _DEBUG
void CControlView::AssertValid() const
{
CFormView::AssertValid();
}
#ifndef _WIN32_WCE
void CControlView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
#endif
#endif //_DEBUG
// CControlView 消息处理程序
void CControlView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: 在此处添加消息处理程序代码
// 不为绘图消息调用 CFormView::OnPaint()
CMainFrame *pwnd = (CMainFrame*)AfxGetMainWnd();
pMapX = ((CMapView*)pwnd->m_pMapView)->GetMapX();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?