📄 shortpathview.h
字号:
// ShortPathView.h : interface of the CShortPathView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHORTPATHVIEW_H__E5F2BC86_739F_41A8_8409_057EF8F41C3A__INCLUDED_)
#define AFX_SHORTPATHVIEW_H__E5F2BC86_739F_41A8_8409_057EF8F41C3A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/*我的预定义*/
#include "ShortestPath.h"
#include "Choose.h"
/*预定义结束*/
class CShortPathView : public CView
{
protected: // create from serialization only
CShortPathView();
DECLARE_DYNCREATE(CShortPathView)
// Attributes
public:
CShortPathDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShortPathView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CShortPathView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
/*我的定义*/
VPosNode vpos[N];
ShortestPath shortpath;
void drawline(CDC* hdc,CPoint from,CPoint end,COLORREF col);
void drawmap(CDC* hdc);
/*定义结束*/
// Generated message map functions
protected:
//{{AFX_MSG(CShortPathView)
afx_msg void OnChoose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ShortPathView.cpp
inline CShortPathDoc* CShortPathView::GetDocument()
{ return (CShortPathDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHORTPATHVIEW_H__E5F2BC86_739F_41A8_8409_057EF8F41C3A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -