⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comdlg.h

📁 自己改进的一个串口VC程序,本来是用于对我的DSP板的监测,打开程序后在视图区内单击鼠标左键即可出现通信控制对话框,可选择传送6个不同的监测变量,都是先传送高8位,再传送低8位,很适合作为监测软件
💻 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 + -