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

📄 mysci2view.cpp

📁 自己改进的一个串口VC程序,本来是用于对我的DSP板的监测,打开程序后在视图区内单击鼠标左键即可出现通信控制对话框,可选择传送6个不同的监测变量,都是先传送高8位,再传送低8位,很适合作为监测软件
💻 CPP
字号:
// MySci2View.cpp : implementation of the CMySci2View class
//

#include "stdafx.h"
#include "MySci2.h"

#include "MySci2Doc.h"
#include "MySci2View.h"
#include "ComDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMySci2View

IMPLEMENT_DYNCREATE(CMySci2View, CView)

BEGIN_MESSAGE_MAP(CMySci2View, CView)
	//{{AFX_MSG_MAP(CMySci2View)
	ON_WM_LBUTTONDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMySci2View construction/destruction

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

}

CMySci2View::~CMySci2View()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMySci2View drawing

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

/////////////////////////////////////////////////////////////////////////////
// CMySci2View diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMySci2View message handlers

void CMySci2View::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	CComDlg dlg;
	dlg.DoModal();
	CView::OnLButtonDown(nFlags, point);
}

⌨️ 快捷键说明

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