📄 enjoystickdlg.h
字号:
// EnjoyStickDlg.h : header file
//
#if !defined(AFX_ENJOYSTICKDLG_H__F02C99F0_4A13_4D0D_9A3D_D07FFA029FA4__INCLUDED_)
#define AFX_ENJOYSTICKDLG_H__F02C99F0_4A13_4D0D_9A3D_D07FFA029FA4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DIJoystick.h"
#include "SerialCom.h"
#include "FstarCmd.h"
/////////////////////////////////////////////////////////////////////////////
// CEnjoyStickDlg dialog
class CEnjoyStickDlg : public CDialog
{
// Construction
public:
CEnjoyStickDlg(CWnd* pParent = NULL); // standard constructor
int lspeed;
int rspeed;
// Dialog Data
//{{AFX_DATA(CEnjoyStickDlg)
enum { IDD = IDD_ENJOYSTICK_DIALOG };
CComboBox m_ctlJoystickName;
CComboBox m_ctlButtonNames;
BOOL m_Down;
BOOL m_left;
CString m_LSpeed;
BOOL m_Right;
CString m_RSpeed;
BOOL m_Up;
CString m_XAxis;
CString m_YAxis;
UINT m_nPort;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEnjoyStickDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
int m_Buttons;
HICON m_hIcon;
CSerialCom m_Com;
CFstarCmd m_Cmd;
HICON m_hIdis;
HICON m_hIon;
HICON m_hIoff;
// Generated message map functions
//{{AFX_MSG(CEnjoyStickDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSelchangeJoystickName();
afx_msg void OnSelchangeButtonNames();
afx_msg void OnXpsysdebug();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnOpen();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ENJOYSTICKDLG_H__F02C99F0_4A13_4D0D_9A3D_D07FFA029FA4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -