www.pudn.com > julei.rar > juleiView.h
// juleiView.h : interface of the CJuleiView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_JULEIVIEW_H__34599F47_DA9F_4660_AA20_BA8352C216FF__INCLUDED_)
#define AFX_JULEIVIEW_H__34599F47_DA9F_4660_AA20_BA8352C216FF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct Node
{
UINT id;
double dis;
Node* lchild;
Node* rchild;
};
class CJuleiView : public CView
{
protected: // create from serialization only
CJuleiView();
DECLARE_DYNCREATE(CJuleiView)
// Attributes
public:
CJuleiDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CJuleiView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CPoint huizhi(Node* pBoot, CDC *pDC);
int t;
//CPoint Postrav(btnode* pBoot, CDC *pDC);
int jj;
Node* m_pTreeRoot;
Node* nodes;
float m_juli[21][21];
float m_p2[9];
float m_p1[9];
float m_pt[21][9];
float pt[21][9];
virtual ~CJuleiView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CJuleiView)
afx_msg void OnJulei();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in juleiView.cpp
inline CJuleiDoc* CJuleiView::GetDocument()
{ return (CJuleiDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_JULEIVIEW_H__34599F47_DA9F_4660_AA20_BA8352C216FF__INCLUDED_)