dlqview.h

来自「齿轮检测软件」· C头文件 代码 · 共 105 行

H
105
字号
// dlqView.h : interface of the CDlqView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DLQVIEW_H__A7221F0D_7559_11D8_BFB3_A66BC8427818__INCLUDED_)
#define AFX_DLQVIEW_H__A7221F0D_7559_11D8_BFB3_A66BC8427818__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "mscomm.h"

class CDlqView : public CScrollView
{
protected: // create from serialization only
	CDlqView();
	DECLARE_DYNCREATE(CDlqView)

// Attributes
public:
	CDlqDoc* GetDocument();
	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlqView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	
	int input;

	
	virtual ~CDlqView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
		CMSComm     m_ComPort;
		CRect rect;
		bool x,isopen,d,istimer2,needdraw;
		CPoint oldpoint;
		void drawdot(CDC *pDC,int i,bool p,int y1);
		void drawdot();
		void drawline();
		void drawtable(CDC *pDC);
		void drawmeter(CDC * pDC);
// Generated message map functions
protected:
	void sendci(unsigned char ci);
	void sendbeili(unsigned char  beili);
	int zero;
	VARIANT variant_inp;
	COleSafeArray safearray_inp;
	long k;
	BYTE bt[8];
	BYTE  rxdata[8];
	void drawstart(CDC *pDC);
	void sendinterval(int interval);
	void sendbegin(int begin);
	void sendtotle(int totle);
	void sendmode(unsigned char mode);
	void setcom(void);
	afx_msg void OnCommMscomm();
	DECLARE_EVENTSINK_MAP();
	//{{AFX_MSG(CDlqView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDisOrRec();
	afx_msg void OnInputData();
	afx_msg void OnSelLine();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnStopInput();
	afx_msg void OnSendLength();
	afx_msg void OnSendCi();
	afx_msg void OnValiJiyuan();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in dlqView.cpp
inline CDlqDoc* CDlqView::GetDocument()
   { return (CDlqDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DLQVIEW_H__A7221F0D_7559_11D8_BFB3_A66BC8427818__INCLUDED_)

⌨️ 快捷键说明

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