www.pudn.com > QQandSample.rar > RotationView.h
// RotationView.h : interface of the CRotationView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ROTATIONVIEW_H__FD53654A_9EC8_4B9A_8535_94FCB54B3D39__INCLUDED_)
#define AFX_ROTATIONVIEW_H__FD53654A_9EC8_4B9A_8535_94FCB54B3D39__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "RotationDoc.h"
#include "Caculate.h"
#include "DrawClass.h"
#include "Sample.h"
class CRotationView : public CFormView
{
protected: // create from serialization only
CRotationView();
DECLARE_DYNCREATE(CRotationView)
public:
//{{AFX_DATA(CRotationView)
enum{ IDD = IDD_ROTATION_FORM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
private:
// Operations
public:
CDrawClass m_draw;//调用绘图类函数
CSample m_Sample;//采集参数控制
int iItem;//保存左视图的条目号码
int iFloder;//保存左视图的抽屉号
CDC m_memDC;//与内存兼容的画图板
CDC m_FrameDC;//绘制标注内容的CDC
CRect rect;//绘图的客户区大小
int nType;//控制画图的类型
BOOL Flag; //控制绘图的开启
BOOL sample_Flag;//采集结束控制
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRotationView)
public:
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);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void Command(int nFolder,int index);//命令池
CRotationDoc* GetDocument();
virtual ~CRotationView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRotationView)
afx_msg void OnPaint();
afx_msg void OnTimeBegan();
afx_msg void OnTimeStop();
afx_msg void OnFileOpen();
afx_msg void OnFftFft();
afx_msg void OnSampleFinished(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in RotationView.cpp
inline CRotationDoc* CRotationView::GetDocument()
{ return (CRotationDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ROTATIONVIEW_H__FD53654A_9EC8_4B9A_8535_94FCB54B3D39__INCLUDED_)