📄 bluetooth hcidlg.h
字号:
// Bluetooth HCIDlg.h : 头文件
//
#pragma once
#include "BT_HCI.h"
#include "afxwin.h"
struct COMPROPERTY
{
DWORD dwComPort;
DWORD dwBaudrate;
BYTE bByteBits;
BYTE bStopBits;
BYTE bParity;
};
#define CR_RED RGB(255, 0, 0)
#define CR_GREEN RGB( 0,255, 0)
#define CR_BLUE RGB( 0, 0,255)
// CBluetoothHCIDlg 对话框
class CBluetoothHCIDlg : public CDialog
{
// 构造
public:
CBluetoothHCIDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_BLUETOOTHHCI_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
public:
CBT_HCI m_BT_HCI;
COMPROPERTY m_COMProperty;
COLORREF m_crConnection;
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnDeviceInquiry();
CComboBox m_ComboBTDevice;
afx_msg void OnCbnSelchangeComboBtDevice();
CEdit m_EditBD_Addr;
afx_msg void OnBnClickedButtonConnection();
CButton m_BtnConnection;
CStatic m_StaticConnection;
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -