?? winceserialdlg.h
字號:
// WinCESerialDlg.h : header file
//
#pragma once
#include "afxwin.h"
DWORD WINAPI ReadPortThread(LPVOID lpvoid); // 讀數據線程
// CWinCESerialDlg dialog
class CWinCESerialDlg : public CDialog
{
// Construction
public:
CWinCESerialDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_WINCESERIAL_DIALOG };
public:
HANDLE hReadThread;
BOOL m_bConnected;
BOOL InitCommTimeouts(); // 設置超時參數
BOOL InitDCB(); // 配置串口
BOOL ClosePort(HANDLE hCommPort); // 關閉串口
DWORD WritePort(TCHAR *buf, DWORD dwBytesToWrite); // 寫數據
BOOL OpenPort(LPTSTR lpszPortName); // 打開串口
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:
afx_msg void OnBnClickedButtonSerialOpen();
afx_msg void OnBnClickedButtonSerialWrite();
afx_msg void OnBnClickedButtonSerialClose();
CEdit m_ceReadSerial;
CEdit m_ceSendserial;
int m_iport;
CString m_com1state;
CString m_com2state;
afx_msg void OnButtonStatus();
afx_msg void OnBnClickedButtonCleanData();
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -