⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usboscillographview.cpp

📁 USB接口虚拟示波器软件软件工程
💻 CPP
字号:
// USBOscillographView.cpp : implementation of the CUSBOscillographView class
//

#include "stdafx.h"
#include "USBOscillograph.h"

#include "USBOscillographDoc.h"
#include "USBOscillographView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CUSBOscillographView

IMPLEMENT_DYNCREATE(CUSBOscillographView, CView)

BEGIN_MESSAGE_MAP(CUSBOscillographView, CView)
	//{{AFX_MSG_MAP(CUSBOscillographView)
	ON_WM_TIMER()
	//}}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()

/////////////////////////////////////////////////////////////////////////////
// CUSBOscillographView construction/destruction

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

}

CUSBOscillographView::~CUSBOscillographView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CUSBOscillographView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CUSBOscillographView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CUSBOscillographView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CUSBOscillographView message handlers

void CUSBOscillographView::OnTimer(UINT nIDEvent) 
{
	// TODO: Add your message handler code here and/or call default
	
	CView::OnTimer(nIDEvent);
}

⌨️ 快捷键说明

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