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

📄 smt5kview.h

📁 一个很好的VC++程序
💻 H
字号:
// SMT5KView.h : interface of the CSMT5KView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SMT5KVIEW_H__6F4401A7_E537_4753_BFC9_3FF5EA3655BF__INCLUDED_)
#define AFX_SMT5KVIEW_H__6F4401A7_E537_4753_BFC9_3FF5EA3655BF__INCLUDED_

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


class CSMT5KView : public CFormView
{
private:
	int m_DrvX;
	int m_DrvY;
	int m_DrvZ;
	int m_DrvU;
	
	int m_X0;
	int m_XMax;

	int m_Y0CV;
	int m_YMinCV;
	int m_YMaxCV;
	int m_YMulCV;

	int m_Y0CA;
	int m_YMinCA;
	int m_YMaxCA;
	int m_YMulCA;

	int m_Y0LP;
	int m_YMinLP;
	int m_YMaxLP;
	int m_YMulLP;

	int m_XDiv[4];
	int m_YDivCV[4];
	int m_YDivCA[4];
	int m_YDivLP[4];

	CRect m_RectLP;
	CRect m_RectCV;
	CRect m_RectCA;

	CPoint ptCurrentLP;
	CPoint ptCurrentCV;
	CPoint ptCurrentCA;

	int m_ShowIplState;  //(为零时为轴驱动)

protected: // create from serialization only
	CSMT5KView();
	DECLARE_DYNCREATE(CSMT5KView)

public:
	//{{AFX_DATA(CSMT5KView)
	enum { IDD = IDD_SMT5K_FORM };
	int		m_DrawSelEP;   //(为零时为逻辑位置)
	//}}AFX_DATA

// Attributes
public:
	CSMT5KDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSMT5KView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	int GetAxisLpRange(short AxisNo);
	void UpdateCurveRect(CRect m_CurveRect);
	void SetDrawRange(short ParamID, long Data , short AxisXEn, short AxisYEn, short AxisZEn, short AxisUEn);
	void AddPointToCVCurve(int lData);
	void AddPointToCACurve(int lData);
	void AddPointToLPCurve(int lData);
	void SendString(CString &str, int Port);
	virtual ~CSMT5KView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSMT5KView)
	afx_msg LONG OnCommunication(WPARAM ch, LPARAM port);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg LONG OnSm5kDataRead(WPARAM wData, LPARAM lData);
	afx_msg void OnTestReg();
	afx_msg void OnTestConfig();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDeltaposSpinCvYRange(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDeltaposSpinXRange(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDeltaposSpinLpRange(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDeltaposSpinCaRange(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnTestDrvMove();
	afx_msg void OnTestIplMove();
	afx_msg void OnTestWriteReg();
	afx_msg void OnTestWriteParam();
	afx_msg void OnTestSendDrvcmd();
	afx_msg void OnTestSendIplcmd();
	afx_msg void OnTestReadReg();
	afx_msg void OnTestShowDrv();
	afx_msg void OnUpdateTestShowDrv(CCmdUI* pCmdUI);
	afx_msg void OnTestShowIpl();
	afx_msg void OnUpdateTestShowIpl(CCmdUI* pCmdUI);
	afx_msg void OnButtonClr();
	afx_msg void OnTestDownSpeed();
	afx_msg void OnTestImstop();
	afx_msg void OnTestGoHome();
	afx_msg void OnButton2();
	afx_msg void OnButton6();
	afx_msg void OnWriteRegister();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SMT5KView.cpp
inline CSMT5KDoc* CSMT5KView::GetDocument()
   { return (CSMT5KDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SMT5KVIEW_H__6F4401A7_E537_4753_BFC9_3FF5EA3655BF__INCLUDED_)

⌨️ 快捷键说明

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