moravec_longview.h

来自「单张像片空间后方交会程序」· C头文件 代码 · 共 92 行

H
92
字号
// Moravec_longView.h : interface of the CMoravec_longView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MORAVEC_LONGVIEW_H__5BCE133C_DA3E_4E33_8758_02A9CA961915__INCLUDED_)
#define AFX_MORAVEC_LONGVIEW_H__5BCE133C_DA3E_4E33_8758_02A9CA961915__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


typedef struct _tpoint{
	CPoint point;
	int D;
	int gray;
}tpoint;


class CMoravec_longView : public CScrollView
{
protected: // create from serialization only
	CMoravec_longView();
	DECLARE_DYNCREATE(CMoravec_longView)

// Attributes
public:
	CMoravec_longDoc* GetDocument();
	CPoint m_startpoint;
	CPoint m_endpoint;
	int k;
	int m;
	tpoint *m_tpoint;
	bool m_ifdown;
	HCURSOR m_hCross;
	tpoint *sectionpoint;
	tpoint stpoint;
	bool m_wsetsecton;

// Operations
public:
	int Min(int* m,int n);
	tpoint Max(tpoint* m,int n);
	void SectionSelect(CPoint point1,CPoint point2);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMoravec_longView)
	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:
	virtual ~CMoravec_longView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMoravec_longView)
	afx_msg void OnMoravec();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnSection();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Moravec_longView.cpp
inline CMoravec_longDoc* CMoravec_longView::GetDocument()
   { return (CMoravec_longDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MORAVEC_LONGVIEW_H__5BCE133C_DA3E_4E33_8758_02A9CA961915__INCLUDED_)

⌨️ 快捷键说明

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