📄 serverdlg.h
字号:
// ServerDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_SERVERDLG_H__352C0065_47A0_4195_9E50_B87F2AFDCAF9__INCLUDED_)
#define AFX_SERVERDLG_H__352C0065_47A0_4195_9E50_B87F2AFDCAF9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ServerSock.h"
#include "math.h"
/////////////////////////////////////////////////////////////////////////////
// CServerDlg dialog
class CServerDlg : public CDialog
{
// Construction
public:
CServerDlg(CWnd* pParent = NULL); // standard constructor
CServerSock m_srvrSocket;
int UserPort;
CServerDataSock m_srvrDataSocket;
int DataPort;
CServerBackDataSock m_srvrBackDataSocket;
int BackDataPort;
// int m_nIndex;
int row;
BOOL m_bOpened;
BOOL m_bArray;//判断CPtrArray是否有效
// Dialog Data
//{{AFX_DATA(CServerDlg)
enum { IDD = IDD_SERVER_DIALOG };
CComboBox m_grasp_comb;
CSliderCtrl m_sldJoint8;
CSliderCtrl m_sldJoint7;
CSliderCtrl m_sldJoint6;
CSliderCtrl m_sldJoint5;
CSliderCtrl m_sldJoint4;
CSliderCtrl m_sldJoint3;
CSliderCtrl m_sldJoint2;
CSliderCtrl m_sldJoint1;
double m_eJoint1;
double m_eJoint2;
double m_eJoint3;
double m_eJoint4;
double m_eJoint5;
double m_eJoint6;
double m_eJoint7;
double m_eJoint8;
CMSComm m_mscom;
CString m_show;
CString m_receive;
float m_position;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerDlg)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
public:
int succeed;
CString senddata;
unsigned char receive[10];
void Move();
void Display(double* Joint);
void GetJointValue();//得到关节的当前值
// Generated message map functions
//{{AFX_MSG(CServerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnConnect();
afx_msg void OnExit();
afx_msg void OnOpen();
afx_msg void OnStop();
afx_msg void OnGohome();
afx_msg void OnMove();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnOnCommMscomm1();
afx_msg void OnSendButton();
afx_msg void OnMotionButton();
afx_msg void OnLeftButton();
afx_msg void OnRightButton4();
afx_msg void OnUpButton();
afx_msg void OnDownButton();
afx_msg void OnFrontButton();
afx_msg void OnBackButton8();
afx_msg void OnSendleggerButton();
afx_msg void OnSendcButton();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERVERDLG_H__352C0065_47A0_4195_9E50_B87F2AFDCAF9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -