📄 buscontroldlg.h
字号:
// buscontrolDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
#include "ComRefer.h"
#include "SigRefer.h"
#include <afxtempl.h>
// CbuscontrolDlg 对话框
class CbuscontrolDlg : public CDialog
{
// 构造
public:
CbuscontrolDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_BUSCONTROL_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
COLORREF m_clrText1,m_clrText2; //记录文本颜色
COLORREF m_clrBkgnd1,m_clrBkgnd2; //记录背景颜色
CBrush m_brBkgnd1,m_brBkgnd2; //用于绘制背景的刷子
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 OnBnClickedButton1();
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton2();
HBRUSH m_hbrush;
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
CFont myFont;
HANDLE m_hComDev;
CWinThread* m_pCommThread;
BOOL m_bExitThread;
int m_nPort;
int m_nBaud;
int m_nParity;
int m_nStopBits;
int m_nDataBits;
int OpenPort(void);
void ClosePort(void);
BOOL m_bOpened;
OVERLAPPED m_OverlappedRead;
OVERLAPPED m_OverlappedWrite;
int InBufferCount(void);
DWORD ReadData(BYTE* buffer, DWORD dwBytesRead);
afx_msg void OnTimer(UINT nIDEvent);
CComRefer* m_comrefer;
CSigRefer* m_sigrefer;
DWORD dwBytesRead;
int numofdata;
CBrush m_bkBrush;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -