You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.2 KiB
C++
96 lines
3.2 KiB
C++
// DlgCameraCtrl.cpp : 实现文件
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "CH91PayloadSoftware.h"
|
|
#include "DlgCameraCtrl.h"
|
|
#include "afxdialogex.h"
|
|
|
|
|
|
// CDlgCameraCtrl 对话框
|
|
|
|
IMPLEMENT_DYNAMIC(CDlgCameraCtrl, CDialogEx)
|
|
|
|
CDlgCameraCtrl::CDlgCameraCtrl(CWnd* pParent /*=NULL*/)
|
|
: CDialogEx(CDlgCameraCtrl::IDD, pParent)
|
|
{
|
|
m_btn_camera_1.Cmd = 0x66;
|
|
m_btn_camera_2.Cmd = 0x67;
|
|
m_btn_camera_3.Cmd = 0x68;
|
|
m_btn_camera_4.Cmd = 0x69;
|
|
m_btn_camera_5.Cmd = 0x75;
|
|
m_btn_camera_6.Cmd = 0x76;
|
|
m_btn_camera_7.Cmd = 0x77;
|
|
m_btn_camera_8.Cmd = 0x78;
|
|
//m_btn_camera_9.Cmd = 0x79;
|
|
m_btn_camera_10.Cmd = 0x7A;
|
|
//m_btn_camera_11.Cmd = 0x7B;
|
|
m_btn_camera_12.Cmd = 0x7C;
|
|
m_btn_camera_13.Cmd = 0x7D;
|
|
m_btn_camera_14.Cmd = 0x66;//图像切换
|
|
m_btn_camera_15.Cmd = 0x67;//画中画开
|
|
m_btn_camera_16.Cmd = 0x68;//画中画关
|
|
m_btn_camera_17.Cmd = 0x6A;//红外大
|
|
m_btn_camera_18.Cmd = 0x69;//红外小
|
|
m_btn_camera_19.Cmd = 0x7B;//复位
|
|
m_btn_camera_20.Cmd = 0x7A;//锁定
|
|
m_btn_camera_21.Cmd = 0x79;//扫描
|
|
m_btn_camera_22.Cmd = 0x6B;//跟踪
|
|
m_btn_camera_23.Cmd = 0xC4;//2M速率
|
|
m_btn_camera_24.Cmd = 0xC5;//4M速率
|
|
m_btn_camera_25.Cmd = 0xCB;//开始记录
|
|
m_btn_camera_26.Cmd = 0xCC;//停止记录
|
|
m_btn_camera_27.Cmd = 0xCD;//清除数据
|
|
m_btn_camera_28.Cmd = 0xC8;//0-3图拼接
|
|
m_btn_camera_29.Cmd = 0xC9;//4-6图拼接
|
|
m_btn_camera_30.Cmd = 0xC6;//吊舱通道1
|
|
m_btn_camera_31.Cmd = 0xC7;//吊舱通道2
|
|
}
|
|
|
|
CDlgCameraCtrl::~CDlgCameraCtrl()
|
|
{
|
|
}
|
|
|
|
void CDlgCameraCtrl::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialogEx::DoDataExchange(pDX);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_1, m_btn_camera_1);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_2, m_btn_camera_2);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_3, m_btn_camera_3);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_4, m_btn_camera_4);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_5, m_btn_camera_5);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_6, m_btn_camera_6);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_7, m_btn_camera_7);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_8, m_btn_camera_8);
|
|
//DDX_Control(pDX, IDC_BTN_CAMERA_9, m_btn_camera_9);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_10, m_btn_camera_10);
|
|
//DDX_Control(pDX, IDC_BTN_CAMERA_11, m_btn_camera_11);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_12, m_btn_camera_12);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_13, m_btn_camera_13);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_14, m_btn_camera_14);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_15, m_btn_camera_15);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_16, m_btn_camera_16);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_17, m_btn_camera_17);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_18, m_btn_camera_18);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_19, m_btn_camera_19);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_20, m_btn_camera_20);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_21, m_btn_camera_21);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_22, m_btn_camera_22);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_23, m_btn_camera_23);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_24, m_btn_camera_24);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_25, m_btn_camera_25);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_26, m_btn_camera_26);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_27, m_btn_camera_27);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_28, m_btn_camera_28);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_29, m_btn_camera_29);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_30, m_btn_camera_30);
|
|
DDX_Control(pDX, IDC_BTN_CAMERA_31, m_btn_camera_31);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CDlgCameraCtrl, CDialogEx)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CDlgCameraCtrl 消息处理程序
|