📄 configdlg.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -