?? vcnetcommdlg.h
字號:
// VCNetCommDlg.h : header file
//
#pragma once
#include "serialport.h"
#include "afxwin.h"
// CVCNetCommDlg dialog
class CVCNetCommDlg : public CDialog
{
// Construction
public:
CVCNetCommDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_VCNETCOMM_DIALOG };
#ifdef WIN32_PLATFORM_WFSP
protected: // control bar embedded members
CCommandBar m_dlgCommandBar;
#endif // WIN32_PLATFORM_WFSP
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
DECLARE_MESSAGE_MAP()
public:
// 串口操作的類
CSerialPort m_SerialPort;
public:
afx_msg void OnBnClickedButtonOpenport();
public:
// 串口編號
UINT m_nPortNum;
static void OnDataFromPort(void * data,DWORD nDataCount,void * context);
public:
afx_msg void OnBnClickedButtonSend();
public:
CString m_sSendData;
public:
afx_msg void OnBnClickedButtonClear();
public:
// 接收到的數據顯示的地方
CEdit m_RecvDataEditCtrl;
public:
// 是否自動清除發送框的數據
BOOL m_bAutoClearSendData;
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -