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

📄 powerview.h

📁 实时曲线类的改进增加功能: 1)采样数据存盘和加载 2)演示程序中可以实现图形的打印预览和打印功能,曲线从原点开始
💻 H
字号:
// powerView.h : interface of the CPowerView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_POWERVIEW_H__415B834C_52BD_11D4_9642_ED5B5A8C517D__INCLUDED_)
#define AFX_POWERVIEW_H__415B834C_52BD_11D4_9642_ED5B5A8C517D__INCLUDED_

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


#include "powerdoc.h"



class CPowerView : public CFormView
{


friend class CAsmDlg;
protected: // create from serialization only
	CPowerView();
	DECLARE_DYNCREATE(CPowerView)

// Attributes



public:
	CPowerDoc* GetDocument();

// Operations
public:
	int curmode;//工作方式
	int step;//
	CAsmDlg *m_pAsmDlg; //ASM测试对话框

public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPowerView)
	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);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPowerView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPowerView)
	afx_msg void OnAsmtest();
	//}}AFX_MSG
	afx_msg LRESULT OnAsmPrintOrPreview(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in powerView.cpp
inline CPowerDoc* CPowerView::GetDocument()
   { return (CPowerDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_POWERVIEW_H__415B834C_52BD_11D4_9642_ED5B5A8C517D__INCLUDED_)

⌨️ 快捷键说明

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