configdlg.h

来自「Bluetooth 2.0 虚拟成串口 设置代码对蓝牙虚拟串口的设备编写程序有很」· C头文件 代码 · 共 80 行

H
80
字号
#if !defined(AFX_CONFIGDLG_H__C6C3E0A1_4823_11D7_A0DB_005004C005A3__INCLUDED_)
#define AFX_CONFIGDLG_H__C6C3E0A1_4823_11D7_A0DB_005004C005A3__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// declaration of my global constants & variables

#include "zbluesoc_drv.h"

typedef struct _CONFIG_INFORMATION {
    unsigned char   Role;
    unsigned char   Baudrate;
    unsigned char   FlowControl;
    BOOLEAN         AutoConnect;
    BOOLEAN         WaitForAllConnected;
    BOOLEAN         PrintFW_Info;
    BOOLEAN         AutoDetect;
    DEV_NAME        DevName;
    DEV_LOCATION    DevLocation;
} CFG_INF;

extern CFG_INF cur_config, new_config;

/////////////////////////////////////////////////////////////////////////////
// CConfigDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CConfigDlg)
	enum { IDD = IDD_CONFIG_DIALOG };
	CButton	m_print_fw_info;
	CEdit	m_fw_version;
	CButton	m_wait_for_all;
	CButton	m_auto_connect;
	CComboBox	m_adapter_flowctrl;
	CEdit	m_bd_addr;
	CButton	m_auto_detect;
	CComboBox	m_role;
	CEdit	m_dev_name;
	CEdit	m_dev_location;
	CComboBox	m_adapter_baudrate;
	//}}AFX_DATA


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

// Implementation
//protected:
public:
	// Generated message map functions
	//{{AFX_MSG(CConfigDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnAutoDetect();
	virtual void OnOK();
	afx_msg void OnSelendokRole();
	afx_msg void OnAutoConnect();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CONFIGDLG_H__C6C3E0A1_4823_11D7_A0DB_005004C005A3__INCLUDED_)

⌨️ 快捷键说明

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