📄 cloudmsgdlg.h
字号:
// CloudMsgDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#include "StageButton.h"
#if !defined(AFX_CLOUDMSGDLG_H__E97F7343_976F_4270_A410_EE929CB63740__INCLUDED_)
#define AFX_CLOUDMSGDLG_H__E97F7343_976F_4270_A410_EE929CB63740__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCloudMsgDlg dialog
class CCloudMsgDlg : public CDialog
{
public:
//成员变量
unsigned char (*m_pData) [100]; //存储云台控制码
int m_Len ; //云台协议使用的字节数
int m_ActoinCount; //云台控制动作数
int m_Port; //端口
CString m_Setting; //环境设置
SOCKET m_Client; //客户端套接字
int m_SrvPort; //服务器端口
CString m_Server; //服务器名称或IP
// Construction
public:
void SendCmd(int CtrCmd,int StopCmd=12);
void OnCancel();
void OnInBrush();
void OnReBrush();
void OnInAperture();
void OnReAperture();
void OnReLen();
void OnInLen();
void OnReFoci();
void OnInFoci();
void OnRight();
void OnLeft();
void OnDown();
void OnReset();
void OnUp();
CCloudMsgDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCloudMsgDlg)
enum { IDD = IDD_CLOUDMSG_DIALOG };
CStageButton m_ReBrush;
CStageButton m_InBrush;
CStageButton m_InAperture;
CStageButton m_ReAperture;
CStageButton m_ReLen;
CStageButton m_InLen;
CStageButton m_ReFoci;
CStageButton m_InFoci;
CStageButton m_ButtonRight;
CStageButton m_ButtonLeft;
CStageButton m_ButtonUp;
CStageButton m_ButtonDown;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCloudMsgDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCloudMsgDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnControl();
afx_msg void OnExit();
afx_msg void OnLinksvr();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CLOUDMSGDLG_H__E97F7343_976F_4270_A410_EE929CB63740__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -