autoreport.cpp

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

CPP
70
字号
// AutoReport.cpp : implementation file
//

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

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

/////////////////////////////////////////////////////////////////////////////
// CAutoReport dialog

CAutoReport::CAutoReport(CWnd* pParent /*=NULL*/)
	: CDialog(CAutoReport::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAutoReport)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CAutoReport::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAutoReport)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAutoReport, CDialog)
	//{{AFX_MSG_MAP(CAutoReport)
	ON_BN_CLICKED(IDC_NO_AUTO_REPORT, OnNoAutoReport)
	ON_BN_CLICKED(IDC_CENTER_CONTRL, OnCenterContrl)
	ON_BN_CLICKED(IDC_ELEC_CRWL, OnElecCrwl)
	ON_BN_CLICKED(IDC_BOTH, OnBoth)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAutoReport message handlers

//无自动报站输出
void CAutoReport::OnNoAutoReport() 
{
	ContrlType = 0x00;
}

//中心控制
void CAutoReport::OnCenterContrl() 
{
	ContrlType = 0x01;
}

//电子围栏控制
void CAutoReport::OnElecCrwl() 
{
	ContrlType = 0x10;
}

//两种方式共同控制
void CAutoReport::OnBoth() 
{
	ContrlType = 0x11;
}

⌨️ 快捷键说明

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