updatemessage.cpp

来自「GPRS协议解析示例。该示例演示里使用GPRS控件实现客户端程序向车载GPS终端」· C++ 代码 · 共 59 行

CPP
59
字号
// UpdateMessage.cpp : implementation file
//

#include "stdafx.h"
#include "测试程序.h"
#include "UpdateMessage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CUpdateMessage dialog


CUpdateMessage::CUpdateMessage(CWnd* pParent /*=NULL*/)
	: CDialog(CUpdateMessage::IDD, pParent)
{
	//{{AFX_DATA_INIT(CUpdateMessage)
	m_Message[0] = _T("");
	m_Message[1] = _T("");
	m_Message[2] = _T("");
	m_Message[3] = _T("");
	m_Message[4] = _T("");
	m_GroupNumber = 0;
	//}}AFX_DATA_INIT
}


void CUpdateMessage::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CUpdateMessage)
	DDX_Text(pDX, IDC_MESSAGE1, m_Message[0]);
	DDV_MaxChars(pDX, m_Message[0], 28);
	DDX_Text(pDX, IDC_MESSAGE2, m_Message[1]);
	DDV_MaxChars(pDX, m_Message[1], 28);
	DDX_Text(pDX, IDC_MESSAGE3, m_Message[2]);
	DDV_MaxChars(pDX, m_Message[2], 28);
	DDX_Text(pDX, IDC_MESSAGE4, m_Message[3]);
	DDV_MaxChars(pDX, m_Message[3], 28);
	DDX_Text(pDX, IDC_MESSAGE5, m_Message[4]);
	DDV_MaxChars(pDX, m_Message[4], 28);
	DDX_Text(pDX, IDC_GROUP_NUMBER, m_GroupNumber);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CUpdateMessage, CDialog)
	//{{AFX_MSG_MAP(CUpdateMessage)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CUpdateMessage message handlers

⌨️ 快捷键说明

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