📄 shiview.h
字号:
// shiView.h : interface of the CShiView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHIVIEW_H__2D95D23B_5827_4323_ABBF_C6ED57703B23__INCLUDED_)
#define AFX_SHIVIEW_H__2D95D23B_5827_4323_ABBF_C6ED57703B23__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "cdib.h"
#define WIDTH 300
#define HEIGHT 300
class CShiView : public CView
{
protected: // create from serialization only
CShiView();
DECLARE_DYNCREATE(CShiView)
// Attributes
public:
CShiDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShiView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void findway1(int datal[WIDTH][HEIGHT]);
void filldata_jieL(int tdata[WIDTH][HEIGHT],int dataout[WIDTH][HEIGHT]);
void filldata_jieL2(int tdata[WIDTH][HEIGHT],int dataout[WIDTH][HEIGHT]);
void way1();
void way2();
void way3();
void way4();
void way5();
int xstack[100];
int ystack[100];
int gerrecentchange(int x,int y);
double T0;
void searchnext(int tdata[WIDTH][HEIGHT],int &x,int &y);
void searchnext2(int tdata[WIDTH][HEIGHT],int &x,int &y);
double getoneshi(int tdata[WIDTH][HEIGHT],int x,int y);
double getmindis(int tdata[WIDTH][HEIGHT],int x, int y);
CDib tdib;
virtual ~CShiView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CShiView)
afx_msg void OnLoadmap();
afx_msg void OnGetshi();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnWay2();
afx_msg void OnWay3();
afx_msg void OnWay4();
afx_msg void OnWay5();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in shiView.cpp
inline CShiDoc* CShiView::GetDocument()
{ return (CShiDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHIVIEW_H__2D95D23B_5827_4323_ABBF_C6ED57703B23__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -