MFC实现实时曲线显示
以下是MFC实现实时曲线显示的完整源码:
// RealTimePlottingView.cpp: CRealTimePlottingView 类的实现
//
#include "pch.h"
#include "framework.h"
#include "RealTimePlotting.h"
#include "RealTimePlottingDoc.h"
#include "RealTimePlottingView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CRealTimePlottingView
IMPLEMENT_DYNCREATE(CRealTimePlottingView, CView)
BEGIN_MESSAGE_MAP(CRealTimePlottingView, CView)
ON_WM_TIMER()
ON_WM_SIZE()
ON_WM_DESTROY()
END_MESSAGE_MAP()
// CRealTimePlottingView 构造/析构
CRealTimePlottingView::CRealTimePlottingView() noexcept
{
// TODO: 在此处添加构造代码
}
CRealTimePlottingView::~CRealTimePlottingView()
{
}
BOOL CRealTimePlottingView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改
// CREATESTRUCT cs 来修改