📄 laserscanview.cpp
字号:
// LaserScanView.cpp : implementation of the CLaserScanView class
//
#include "stdafx.h"
#include "LaserScan.h"
#include "LaserScanDoc.h"
#include "LaserScanView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLaserScanView
IMPLEMENT_DYNCREATE(CLaserScanView, CScrollView)
BEGIN_MESSAGE_MAP(CLaserScanView, CScrollView)
//{{AFX_MSG_MAP(CLaserScanView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLaserScanView construction/destruction
CLaserScanView::CLaserScanView()
{
// TODO: add construction code here
}
CLaserScanView::~CLaserScanView()
{
}
BOOL CLaserScanView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CScrollView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CLaserScanView drawing
void CLaserScanView::OnDraw(CDC* pDC)
{
CLaserScanDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
void CLaserScanView::OnInitialUpdate()
{
CScrollView::OnInitialUpdate();
CSize sizeTotal;
// TODO: calculate the total size of this view
sizeTotal.cx = sizeTotal.cy = 100;
SetScrollSizes(MM_TEXT, sizeTotal);
}
/////////////////////////////////////////////////////////////////////////////
// CLaserScanView diagnostics
#ifdef _DEBUG
void CLaserScanView::AssertValid() const
{
CScrollView::AssertValid();
}
void CLaserScanView::Dump(CDumpContext& dc) const
{
CScrollView::Dump(dc);
}
CLaserScanDoc* CLaserScanView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CLaserScanDoc)));
return (CLaserScanDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CLaserScanView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -