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

📄 xfkilnview.h

📁 关于串口通讯的多线程编程,希望可以为为大家提供参考
💻 H
字号:
// XFKILNView.h : interface of the CXFKILNView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_XFKILNVIEW_H__8C9F4991_EE6A_4F67_83BB_8878D378572D__INCLUDED_)
#define AFX_XFKILNVIEW_H__8C9F4991_EE6A_4F67_83BB_8878D378572D__INCLUDED_

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

#include "SerialPort.h"
#include "DeviceNode.h"

class CXFKILNView : public CView
{
protected: // create from serialization only
	CXFKILNView();
	DECLARE_DYNCREATE(CXFKILNView)

// Attributes
public:
	CXFKILNDoc* GetDocument();
	CSerialPort m_CommMeter;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXFKILNView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	int m_bSelectMeter1;
	int m_bSelectMeter2;
	int m_bSelectMeter3;
	int m_bSelectMeter4;

	char strList[50];
	int m_count;
	virtual ~CXFKILNView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CXFKILNView)
	afx_msg void OnCmdTestport();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnAddnode();
	afx_msg void OnMeter1();
	afx_msg void OnMeter2();
	afx_msg void OnMter3();
	afx_msg void OnMter4();
	afx_msg void OnUpdateMeter1(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMeter2(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMter3(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMter4(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
//	CDeviceNode* m_pDevNode;

};

#ifndef _DEBUG  // debug version in XFKILNView.cpp
inline CXFKILNDoc* CXFKILNView::GetDocument()
   { return (CXFKILNDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_XFKILNVIEW_H__8C9F4991_EE6A_4F67_83BB_8878D378572D__INCLUDED_)

⌨️ 快捷键说明

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