📄 demprimview.h
字号:
#if !defined(AFX_DEMPRIMVIEW_H__96E998B1_DAD6_4CEC_85B1_F6C815096421__INCLUDED_)
#define AFX_DEMPRIMVIEW_H__96E998B1_DAD6_4CEC_85B1_F6C815096421__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DemPrimView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDemPrimView view
#include <Afxcview.h>
class CDemPrimView : public CListView //演示视图部分
{
protected:
CDemPrimView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDemPrimView)
// Attributes
public:
int m_nodenumber; //顶点个数
double gn[50][50]; //记录各边的权值
// Operations
public:
void drawArc(int number1,int number2);
void DrawNode(int number);
void SetLowcost(int number,CString str);
void SetVex(int number,CString str);
void SetInitTimer();
static void CALLBACK OnTimerDrawInit(HWND hWnd,UINT nMsg,UINT nIDEvent,DWORD dwTime);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDemPrimView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDemPrimView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CDemPrimView)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DEMPRIMVIEW_H__96E998B1_DAD6_4CEC_85B1_F6C815096421__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -