📄 dataacquireview.cpp
字号:
// DataAcquireView.cpp : implementation of the CDataAcquireView class
//
#include "stdafx.h"
#include "DataAcquire.h"
#include "DataAcquireDoc.h"
#include "DataAcquireView.h"
#include "InputSelDlg.h"
#include "OutputDataDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDataAcquireView
IMPLEMENT_DYNCREATE(CDataAcquireView, CView)
BEGIN_MESSAGE_MAP(CDataAcquireView, CView)
//{{AFX_MSG_MAP(CDataAcquireView)
ON_COMMAND(ID_DEVICE_SEL, OnDeviceSel)
ON_COMMAND(ID_INPUT_SEL, OnInputSel)
ON_COMMAND(ID_OUTPUT_DATA, OnOutputData)
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CDataAcquireView construction/destruction
CDataAcquireView::CDataAcquireView()
{
// TODO: add construction code here
}
CDataAcquireView::~CDataAcquireView()
{
}
BOOL CDataAcquireView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CDataAcquireView drawing
void CDataAcquireView::OnDraw(CDC* pDC)
{
CDataAcquireDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CDataAcquireView printing
BOOL CDataAcquireView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CDataAcquireView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CDataAcquireView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CDataAcquireView diagnostics
#ifdef _DEBUG
void CDataAcquireView::AssertValid() const
{
CView::AssertValid();
}
void CDataAcquireView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CDataAcquireDoc* CDataAcquireView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDataAcquireDoc)));
return (CDataAcquireDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CDataAcquireView message handlers
void CDataAcquireView::OnDeviceSel()
{
// TODO: Add your command handler code here
}
void CDataAcquireView::OnInputSel()
{
// TODO: Add your command handler code here
CInputSelDlg* inputSelDlg= new CInputSelDlg;
inputSelDlg->Create(IDD_INPUT_SEL,this);
inputSelDlg->ShowWindow(SW_SHOW);
}
void CDataAcquireView::OnOutputData()
{
// TODO: Add your command handler code here
COutputDataDlg* outputDataDlg= new COutputDataDlg;
outputDataDlg->Create(IDD_OUTPUT_DATA,this);
outputDataDlg->ShowWindow(SW_SHOW);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -