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

📄 runway.cpp

📁 GPRS协议解析示例。该示例演示里使用GPRS控件实现客户端程序向车载GPS终端发送点名、监听等指令
💻 CPP
字号:
// RunWay.cpp : implementation file
//

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

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

/////////////////////////////////////////////////////////////////////////////
// CRunWay dialog


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


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


BEGIN_MESSAGE_MAP(CRunWay, CDialog)
	//{{AFX_MSG_MAP(CRunWay)
	ON_BN_CLICKED(IDC_UP, OnUp)
	ON_BN_CLICKED(IDC_DOWN, OnDown)
	ON_BN_CLICKED(IDC_CENTER, OnCenter)
	ON_BN_CLICKED(IDC_LOCAL, OnLocal)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRunWay message handlers

//车辆运行方向为上行
void CRunWay::OnUp() 
{
	RunWay = 0;
}

//车辆运行方向为下行
void CRunWay::OnDown() 
{
	RunWay = 1;
}

//控制方式为中心控制
void CRunWay::OnCenter() 
{
	Contrl = 0;
}

//控制方式为本地手动控制
void CRunWay::OnLocal() 
{
	Contrl = 1;
}

⌨️ 快捷键说明

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