shiyuanview.h
来自「小世界网络的试验程序!可以观察小世界网络的生成过程和结果!」· C头文件 代码 · 共 83 行
H
83 行
// shiyuanView.h : interface of the CShiyuanView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHIYUANVIEW_H__B2CADAC1_78FA_496E_ADDE_A4A817EF735A__INCLUDED_)
#define AFX_SHIYUANVIEW_H__B2CADAC1_78FA_496E_ADDE_A4A817EF735A__INCLUDED_
#include "Afxtempl.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GailvDlg.h"
struct LINE
{
POINT pStart;
POINT pEnd;
};
class CShiyuanView : public CView
{
protected: // create from serialization only
CShiyuanView();
DECLARE_DYNCREATE(CShiyuanView)
// Attributes
public:
CShiyuanDoc* GetDocument();
// Operations
public:
// CArray<CPoint,CPoint&> m_points;//AOI多边形内的像素点
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShiyuanView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
BOOL panduan(LINE line);
//}}AFX_VIRTUAL
// Implementation
public:
float m_y;
void tongji();
BOOL q;
void tuxing();
UINT MapRand(UINT nMax);
CArray<LINE,LINE&> m_lines;
// int s;
CPoint points[21];
CPoint points1[20];
int pp;
void Draw();
virtual ~CShiyuanView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CShiyuanView)
afx_msg void OnFuza();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in shiyuanView.cpp
inline CShiyuanDoc* CShiyuanView::GetDocument()
{ return (CShiyuanDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHIYUANVIEW_H__B2CADAC1_78FA_496E_ADDE_A4A817EF735A__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?