Скачиваний:
17
Добавлен:
01.05.2014
Размер:
2.15 Кб
Скачать
// RegionSearchView.h : interface of the CRegionSearchView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_REGIONSEARCHVIEW_H__9EE29362_EF38_48D8_8DD7_0BB9BA9E53DF__INCLUDED_)
#define AFX_REGIONSEARCHVIEW_H__9EE29362_EF38_48D8_8DD7_0BB9BA9E53DF__INCLUDED_

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


class CRegionSearchView : public CView
{
protected: // create from serialization only
	CRegionSearchView();
	DECLARE_DYNCREATE(CRegionSearchView)

// Attributes
public:
	CRegionSearchDoc* GetDocument();

// Operations
public:

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRegionSearchView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void DrawTree(CDC* pDC, BinaryTree<RegionTreeNode>* t, int l, int lx, int rx);
	void DrawLegend(CDC* pDC);
	CRect ClientRect;

	int Counter;
};

#ifndef _DEBUG  // debug version in RegionSearchView.cpp
inline CRegionSearchDoc* CRegionSearchView::GetDocument()
   { return (CRegionSearchDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_REGIONSEARCHVIEW_H__9EE29362_EF38_48D8_8DD7_0BB9BA9E53DF__INCLUDED_)
Соседние файлы в папке Source