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

📄 autoreport.cpp

📁 GPRS协议解析示例。该示例演示里使用GPRS控件实现客户端程序向车载GPS终端发送点名、监听等指令
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -