firstdlg.h
来自「WINCE系统下的串口通信」· C头文件 代码 · 共 59 行
H
59 行
// FirstDlg.h : header file
//
#if !defined(AFX_FIRSTDLG_H__DA34C283_EDDD_4762_909A_169DDDA0C014__INCLUDED_)
#define AFX_FIRSTDLG_H__DA34C283_EDDD_4762_909A_169DDDA0C014__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "CESeries.h"
/////////////////////////////////////////////////////////////////////////////
// CFirstDlg dialog
#define WM_RECV_SERIAL_DATA WM_USER+100
class CFirstDlg : public CDialog
{
// Construction
public:
CFirstDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CFirstDlg)
enum { IDD = IDD_FIRST_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFirstDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
private:
static void CALLBACK OnSerialRead(void * pOwner,BYTE* buf,DWORD bufLen);
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CFirstDlg)
virtual BOOL OnInitDialog();
afx_msg void OnBtnSend();
afx_msg void OnBtnOpenCom();
afx_msg void OnBtnCloseCom();
afx_msg LONG OnRecvSerialData(WPARAM wParam,LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
//CSerialPort Port1;
CString m_strRecDisp; /* 接收区显示字符 */
CCESeries* m_pPort1;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FIRSTDLG_H__DA34C283_EDDD_4762_909A_169DDDA0C014__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?