selectdevice.h

来自「美国Delta Tau公司PMAC多轴运动控制卡的VC++示例程序」· C头文件 代码 · 共 69 行

H
69
字号
#if !defined(AFX_SELECTDEVICE_H__93C001F9_AB8F_4C03_AB0C_43F48260C427__INCLUDED_)
#define AFX_SELECTDEVICE_H__93C001F9_AB8F_4C03_AB0C_43F48260C427__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SelectDevice.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSelectDevice dialog

class CSelectDevice : public CDialog
{
// Construction
public:
	DWORD m_dwDevice;
	void UpdateDeviceList();
	CSelectDevice(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSelectDevice)
	enum { IDD = IDD_SELECT_DEVICE };
	CButton	m_configureButton;
	CButton	m_testButton;
	CButton	m_okButton;
	CButton	m_insertButton;
	CButton	m_removeButton;
	CButton	m_userButton1;
	CButton	m_userButton2;
	CListBox	m_listBox;
	CString	m_szPmacDevice;
	//}}AFX_DATA


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

// Implementation
protected:
	BOOL LaunchUserApp(DWORD dwUser);
	LOCATIONTYPE m_locations[MAX_MOTION_DEVICES];
  bool         m_bInstalled[MAX_MOTION_DEVICES];

	// Generated message map functions
	//{{AFX_MSG(CSelectDevice)
	afx_msg void OnInsertButton();
	afx_msg void OnRemoveButton();
	virtual BOOL OnInitDialog();
	afx_msg void OnConfigureButton();
	afx_msg void OnDeviceTest();
	afx_msg void OnDblclkDeviceList();
	virtual void OnOK();
	afx_msg void OnSelchangeDeviceList();
	afx_msg void OnUser1();
	afx_msg void OnUser2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SELECTDEVICE_H__93C001F9_AB8F_4C03_AB0C_43F48260C427__INCLUDED_)

⌨️ 快捷键说明

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