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

📄 yuntaidlg.h

📁 云台控制的工具
💻 H
字号:
// YunTaiDlg.h : header file
//

#if !defined(AFX_YUNTAIDLG_H__85FBAB11_20A0_4667_8B83_CF761EE913F9__INCLUDED_)
#define AFX_YUNTAIDLG_H__85FBAB11_20A0_4667_8B83_CF761EE913F9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "SerialPort.h"
#include "MyButton.h"


//*****************************************************************************
//	YTDEVINFO
//*****************************************************************************

//	定义 gps 句柄
typedef HANDLE	HYT;

#define MaxYTDeviceName		30
typedef struct _YTDEVINFO
{
	TCHAR szDeviceName[MaxYTDeviceName + 1];	//	Name of the GPS Device
	BOOL  bDefaultReceiver;	//	Is this GPS Device the default receiver
	WORD  wCommPort;		//	What Comms Port is being used
	DWORD dwCommBaudRate;	//	Baud rate of the comms port being used
	WORD  wCommDataBits;	//	Data bits of the comms port being used
	WORD  wCommParity;		//	Enum of the type of parity of the comms port being used
	WORD  wCommStopBits;	//	Enum of the stop bits of the comms port being used
} YTDEVINFO, * LPYTDEVINFO;


/////////////////////////////////////////////////////////////////////////////
// CYunTaiDlg dialog

#define CONTROLLER_COUNT	15

class CYunTaiDlg : public CDialog
{
// Construction
public:
	CYunTaiDlg(CWnd* pParent = NULL);	// standard constructor

	enum {
		CMD_UP,
		CMD_DOWN,
		CMD_LEFT,
		CMD_RIGHT,
		CMD_LEFT_UP,
		CMD_RIGHT_UP,
		CMD_LEFT_DOWN,
		CMD_RIGHT_DOWN,
		CMD_AUTO,
		CMD_MULTIPLE_ZOOM_IN,
		CMD_MULTIPLE_ZOOM_OUT,
		CMD_FOCUS_ZOOM_IN,
		CMD_FOCUS_ZOOM_OUT,
		CMD_APERTURE_ZOOM_IN,
		CMD_APERTURE_ZOOM_OUT,
		CMD_STOP
	};

// Dialog Data
	//{{AFX_DATA(CYunTaiDlg)
	enum { IDD = IDD_YUNTAI_DIALOG };
	CComboBox	m_ctlCom;
	//}}AFX_DATA
	CMyButton	m_btnControl[CONTROLLER_COUNT];

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CYunTaiDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CSerialPort m_oYtPort;	//	云台所占有的端口,假设为端口1
	BOOL m_bAuto;

	// Generated message map functions
	//{{AFX_MSG(CYunTaiDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnDestroy();
	afx_msg void OnSelChangeCom();
	//}}AFX_MSG
	afx_msg void OnActionStart(WPARAM id, LPARAM);
	afx_msg void OnActionEnd(WPARAM id, LPARAM);
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_YUNTAIDLG_H__85FBAB11_20A0_4667_8B83_CF761EE913F9__INCLUDED_)

⌨️ 快捷键说明

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