piview.h
来自「用Visual C++开发的图形化圆周率Pi计算程序」· C头文件 代码 · 共 80 行
H
80 行
// PiView.h : interface of the CPiView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PIVIEW_H__96C2FAC3_BE34_4075_B5DF_976273E00B22__INCLUDED_)
#define AFX_PIVIEW_H__96C2FAC3_BE34_4075_B5DF_976273E00B22__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPiView : public CView
{
protected: // create from serialization only
CPiView();
DECLARE_DYNCREATE(CPiView)
// Attributes
public:
CPiDoc* GetDocument();
////////////////////////////////////////////////////////////////////////////////
//自定义成员函数
void ArcTan();
void ArcSin();
void Marchin();
void Shanks();
void Gauss();
int aTan(char *Result,int Orgin);
void FileSave();
////////////////////////////////////////////////////////////////////////////////
// Operations
public:
int m_Flag;
long m_Count,m_Number,m_Size;
DWORD m_time1,m_time2;
char *m_Result,*m_An;
CString m_Method;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPiView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPiView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CPiView)
afx_msg void OnCalucate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in PiView.cpp
inline CPiDoc* CPiView::GetDocument()
{ return (CPiDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PIVIEW_H__96C2FAC3_BE34_4075_B5DF_976273E00B22__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?