comnotifywnd.cpp

来自「本程序的开发环境是VC++,实现的功能是串口通信.」· C++ 代码 · 共 43 行

CPP
43
字号
// ComNotifyWnd.cpp : implementation file
//

#include "stdafx.h"
#include "矩阵控制器.h"
#include "ComNotifyWnd.h"
#include "SerialCom.h"

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

/////////////////////////////////////////////////////////////////////////////
// CComNotifyWnd

CComNotifyWnd::CComNotifyWnd(CSerialCom *pCom)
{
	m_pCom=pCom;
}

CComNotifyWnd::~CComNotifyWnd()
{
}


BEGIN_MESSAGE_MAP(CComNotifyWnd, CWnd)
	//{{AFX_MSG_MAP(CComNotifyWnd)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
	ON_MESSAGE(WM_COMMNOTIFY,OnReceive)
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CComNotifyWnd message handlers
LONG CComNotifyWnd::OnReceive(UINT wParam,LONG lParam)
{
	m_pCom->OnReceive();
	return TRUE;
}

⌨️ 快捷键说明

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