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

📄 maxstreamview.h

📁 学习VC的时候写的
💻 H
字号:
// MaxStreamView.h : interface of the CMaxStreamView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAXSTREAMVIEW_H__3C9DAEC8_2170_4BA9_B37D_ECA85B5DF20A__INCLUDED_)
#define AFX_MAXSTREAMVIEW_H__3C9DAEC8_2170_4BA9_B37D_ECA85B5DF20A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DlgDrawLine.h"
#include "DlgViewHelp.h"
#include <math.h>


class CMaxStreamView : public CView
{
protected: // create from serialization only
	CMaxStreamView();
	DECLARE_DYNCREATE(CMaxStreamView)

// Attributes
public:
	CMaxStreamDoc* GetDocument();

// Operations
protected: 
	HCURSOR m_hCross;
public:
   int OperationChoice;
   DlgDrawLine *dlg;
   DlgViewHelp *dlgHelp;
   afx_msg LRESULT OnDialog(WPARAM wParam,LPARAM lParam);
   CPoint m_ptResource[25];
   CPoint m_ptTemp;
   int PointNumber;
   int m_nMax[25][25],m_nActual[25][25];
   int m_nMin[25][25],m_nTheMaxStream;
   CPoint c_pMidMin[25];
   int NN;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMaxStreamView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL DestroyWindow();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void ArrowLine(CPoint c_pStart,CPoint c_pEnd);
	virtual void Label(CPoint c_pStart,CPoint c_pEnd,CString TempText1,CString TempText2);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMaxStreamView)
	afx_msg void OnInputpoint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLine();
	afx_msg void OnCompute();
	afx_msg void OnSetZero();
	afx_msg void OnInputhelp();
	afx_msg void OnFileSave();
	afx_msg void OnFileOpen();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MaxStreamView.cpp
inline CMaxStreamDoc* CMaxStreamView::GetDocument()
   { return (CMaxStreamDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MAXSTREAMVIEW_H__3C9DAEC8_2170_4BA9_B37D_ECA85B5DF20A__INCLUDED_)

⌨️ 快捷键说明

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