hk_pci812f_vcview.cpp

来自「vc数据采集程序,有曲线现实和数据显示以及采集卡设置」· C++ 代码 · 共 105 行

CPP
105
字号
// HK_PCI812F_VCView.cpp : implementation of the CHK_PCI812F_VCView class
//

#include "stdafx.h"
#include "HK_PCI812F_VC.h"
#include "MODE.h"
#include "HK_PCI812F_VCDoc.h"
#include "HK_PCI812F_VCView.h"
#include "channelWave.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CHK_PCI812F_VCView

IMPLEMENT_DYNCREATE(CHK_PCI812F_VCView, CView)

BEGIN_MESSAGE_MAP(CHK_PCI812F_VCView, CView)
	//{{AFX_MSG_MAP(CHK_PCI812F_VCView)
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CHK_PCI812F_VCView construction/destruction

CHK_PCI812F_VCView::CHK_PCI812F_VCView()
{
	// TODO: add construction code here

}

CHK_PCI812F_VCView::~CHK_PCI812F_VCView()
{
}

BOOL CHK_PCI812F_VCView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CHK_PCI812F_VCView drawing

void CHK_PCI812F_VCView::OnDraw(CDC* pDC)
{
	CHK_PCI812F_VCDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CHK_PCI812F_VCView printing

BOOL CHK_PCI812F_VCView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CHK_PCI812F_VCView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CHK_PCI812F_VCView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CHK_PCI812F_VCView diagnostics

#ifdef _DEBUG
void CHK_PCI812F_VCView::AssertValid() const
{
	CView::AssertValid();
}

void CHK_PCI812F_VCView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CHK_PCI812F_VCDoc* CHK_PCI812F_VCView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CHK_PCI812F_VCDoc)));
	return (CHK_PCI812F_VCDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CHK_PCI812F_VCView message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?