📄 controlview.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -