📄 magneticproview.h
字号:
// MagneticProView.h : interface of the CMagneticProView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAGNETICPROVIEW_H__6ED67CE0_034B_4395_8AE6_EEC9B1B36D37__INCLUDED_)
#define AFX_MAGNETICPROVIEW_H__6ED67CE0_034B_4395_8AE6_EEC9B1B36D37__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMagneticProView : public CScrollView
{
protected: // create from serialization only
CMagneticProView();
DECLARE_DYNCREATE(CMagneticProView)
// Attributes
public:
CMagneticProDoc* GetDocument();
// Operations
public:
double fTemp[2000];
CBitmap m_bmp;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMagneticProView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
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:
bool GetMaxMinMid(double fArray[],int xNum);
bool DrawGrapher(double xArray[],int xNum,double yArray[],int yNum);
double Xmax,Xmin,Xmid,Ymax,Ymin,Ymid,Ximax,Ximin,Ximid;
virtual ~CMagneticProView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMagneticProView)
afx_msg void OnFileOpenMdata();
afx_msg void OnDrawCMdata();
afx_msg void OnDrawSunCurve();
// afx_msg void OnExchangMagnetic();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MagneticProView.cpp
inline CMagneticProDoc* CMagneticProView::GetDocument()
{ return (CMagneticProDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAGNETICPROVIEW_H__6ED67CE0_034B_4395_8AE6_EEC9B1B36D37__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -