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

📄 mscommv1dlg.h

📁 一个虚拟串口读取程序
💻 H
字号:
// MSCommV1Dlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "mschart.h"

//}}AFX_INCLUDES

#if !defined(AFX_MSCOMMV1DLG_H__7B77B296_0656_45E9_A584_9A9E3F6912BF__INCLUDED_)
#define AFX_MSCOMMV1DLG_H__7B77B296_0656_45E9_A584_9A9E3F6912BF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMSCommV1Dlg dialog

class CMSCommV1Dlg : public CDialog
{
// Construction
public:
	int PORT;
	CString Value;
	int nCounter; //横坐标单位长度
	int order; //横坐标计数

	int data[48]; //横坐标数据存储数组,个数为48个(此时单位跨度为10),即每48个刷屏一次
	//int bush[48]; //存储上一次的屏幕数据,用于刷屏
	CMSCommV1Dlg(CWnd* pParent = NULL);	// standard constructor
    void OnDrawInitial();
	void DrawLine(CString Value);


//	int ChangeToInt(char *digitStr);
// Dialog Data
	//{{AFX_DATA(CMSCommV1Dlg)
	enum { IDD = IDD_MSCOMMV1_DIALOG };
	CButton	m_Draw;
	CEdit	m_Clear;
	CComboBox	m_Combo;
	CButton	m_Send;
	CButton	m_Open;
	CButton	m_EXIT;
	CString	m_Rev;
	CMSComm	m_MSComm;
	CMSChart	m_MSChart;
	CBrush m_WhiteBrush;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMSCommV1Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMSCommV1Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonExit();
	afx_msg void OnOnCommMscomm1();
	afx_msg void OnSelendokCombo1();
	afx_msg void OnButtonOpen();
	afx_msg void OnButtonClear();
	afx_msg void OnOutofmemoryProgress1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnOutofmemoryProgress(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBUTTON1Draw();
	afx_msg void OnButton1Close();
	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_MSCOMMV1DLG_H__7B77B296_0656_45E9_A584_9A9E3F6912BF__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -