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.
107 lines
2.7 KiB
C++
107 lines
2.7 KiB
C++
#pragma once
|
|
#include "resource.h"
|
|
#include "global.h"
|
|
#include <MMSystem.h>
|
|
#include "afxwin.h"
|
|
#include "DCFrameCkCmd.h"
|
|
#include "CYHMudpSend.h"//自定义组播发送
|
|
#include "CMDBtn.h"
|
|
// Dlg13InstituteDCNew 对话框
|
|
|
|
|
|
class Dlg13InstituteDCNew : public CDialogEx
|
|
{
|
|
DECLARE_DYNAMIC(Dlg13InstituteDCNew)
|
|
|
|
public:
|
|
Dlg13InstituteDCNew(CWnd* pParent = NULL); // 标准构造函数
|
|
virtual ~Dlg13InstituteDCNew();
|
|
|
|
// 对话框数据
|
|
enum { IDD = IDD_DIALOG_DC_13INSTITUTE_NEW };
|
|
virtual BOOL OnInitDialog();
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
void TimeStep(DWORD); //定时器处理函数
|
|
int mTimerId; //定时ID
|
|
int num; //指令计数
|
|
bool injectstart; //吊舱装订开始的标志
|
|
public:
|
|
UINT8 SwitchCmd; //开关指令
|
|
INT16 PitchControl; //俯仰控制量
|
|
INT16 DirControl; //方位控制量
|
|
INT16 PitchRecord; //俯仰量记录
|
|
INT16 DirRecord; //方位量记录
|
|
|
|
public:
|
|
void Update13InsNewCmdBuffer(HWND);//更新控制指令到吊舱协议
|
|
void UpdateDataZ70_13Ins();//更新buffer到帧结构体
|
|
void UpdateFrame(int&);
|
|
void UpdateFrame2(int&);
|
|
void UpdateFrame3(int&);
|
|
void UpdateFrame4(int&);
|
|
void UpdateFrame5();
|
|
void UpdateFrame6();
|
|
void UpdateFrame7();
|
|
void UpdateFrame8();
|
|
void UpdateFrame9(int&);
|
|
void UpdateFrame10(int&);
|
|
void UpdateFrame11(int&);
|
|
void UpdateFrame12(int&);
|
|
void UpdateFrame13(int&);
|
|
void UpdateFrame14();
|
|
void UpdateFrame15();
|
|
void UpdateFrame16(int&);
|
|
void UpdateFrame17(int&);
|
|
void UpdateFrame18(int&);
|
|
void UpdateFrame19(int&);
|
|
void UpdateFrame20();
|
|
void UpdateFrame21();
|
|
void UpdateFrame22(int&);
|
|
void UpdateFrame23(int&);
|
|
void UpdateFrame24(int&);
|
|
void UpdateFrame25(int&);
|
|
void UpdateFrame26(int&);
|
|
void UpdateFrame27(int&);
|
|
void UpdateFrame28(int&);
|
|
void UpdateFrame29(int&);
|
|
void UpdateFrame30(int&);
|
|
void UpdateFrame31(int&);
|
|
void UpdateFrame32(int&);
|
|
void UpdateFrame33(int&);
|
|
void UpdateFrame34(int&);
|
|
void UpdateFrame35();//俯仰+范围50~-110
|
|
void UpdateFrame36();//俯仰-
|
|
void UpdateFrame37();//方位+范围180~-180
|
|
void UpdateFrame38();//方位-
|
|
//void UpdateFrame39(int&);
|
|
//void UpdateFrame40(int&);
|
|
//void UpdateDC13Action(int);
|
|
|
|
public:
|
|
HANDLE hCheckThread;//线程
|
|
DWORD ThreadCheckIDRegion;
|
|
afx_msg LRESULT OnUpdate13DCFrame(WPARAM wParam, LPARAM lParam);
|
|
int InfraredOrVisibleLight;//红外可见光切换
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
//CFont m_oFont;//字体
|
|
|
|
CMFCButton DC13InsBtn[38];
|
|
CCMDBtn m_DCFlyCmd[12];
|
|
double Param1;
|
|
double Param2;
|
|
BYTE DC13InsCmdBuffer[5];
|
|
public:
|
|
CBrush m_brush;
|
|
CFont m_font;
|
|
public:
|
|
//afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
|
CDCFrameCkCmdFrame DCFrameCkCmd13;//数据注入指令从控发送数据帧---13所吊舱
|
|
CYHMudpSend m_MudpSend;
|
|
|
|
};
|