📄 comdlg.h
字号:
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_COMDLG_H__17807A3F_3B1D_4EFB_8805_9AD49A0DB4E9__INCLUDED_)
#define AFX_COMDLG_H__17807A3F_3B1D_4EFB_8805_9AD49A0DB4E9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ComDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CComDlg dialog
class CComDlg : public CDialog
{
// Construction
public:
char ConvertHexChar(char ch);
int String2Hex(CString str, CByteArray &senddata);
void OpenPort();
CString m_strComSet;
int m_nPort;
int m_nRecKind;
BOOL m_bReceive;
BOOL m_bSend;
CComDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CComDlg)
enum { IDD = IDD_COMDLG };
CButton m_strlSend;
CButton m_ctrlReceive;
CString m_strReceive;
CString m_strSend;
CMSComm m_ctrlCom;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CComDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CComDlg)
afx_msg void OnOnCommMscomm();
virtual void OnOK();
afx_msg void OnButtonRecset();
afx_msg void OnButtonSet();
afx_msg void OnButtonClear();
afx_msg void OnButtonReceive();
virtual BOOL OnInitDialog();
afx_msg void OnButtonSend();
afx_msg void OnChangeEditSend();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMDLG_H__17807A3F_3B1D_4EFB_8805_9AD49A0DB4E9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -