dsp7view.cpp
来自「基于数字信号处理器(DSP)的异步电机直接转矩控制研究(硕士论文),含VC源代码」· C++ 代码 · 共 110 行
CPP
110 行
// Dsp7View.cpp : implementation of the CDsp7View class
//
#include "stdafx.h"
#include "Dsp7.h"
#include "Dsp7Doc.h"
#include "Dsp7View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDsp7View
IMPLEMENT_DYNCREATE(CDsp7View, CEditView)
BEGIN_MESSAGE_MAP(CDsp7View, CEditView)
//{{AFX_MSG_MAP(CDsp7View)
// 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
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDsp7View construction/destruction
CDsp7View::CDsp7View()
{
// TODO: add construction code here
}
CDsp7View::~CDsp7View()
{
}
BOOL CDsp7View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
BOOL bPreCreated = CEditView::PreCreateWindow(cs);
cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL); // Enable word-wrapping
return bPreCreated;
}
/////////////////////////////////////////////////////////////////////////////
// CDsp7View drawing
void CDsp7View::OnDraw(CDC* pDC)
{
CDsp7Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CDsp7View printing
BOOL CDsp7View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default CEditView preparation
return CEditView::OnPreparePrinting(pInfo);
}
void CDsp7View::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView begin printing.
CEditView::OnBeginPrinting(pDC, pInfo);
}
void CDsp7View::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView end printing
CEditView::OnEndPrinting(pDC, pInfo);
}
/////////////////////////////////////////////////////////////////////////////
// CDsp7View diagnostics
#ifdef _DEBUG
void CDsp7View::AssertValid() const
{
CEditView::AssertValid();
}
void CDsp7View::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
CDsp7Doc* CDsp7View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDsp7Doc)));
return (CDsp7Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CDsp7View message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?