Скачиваний:
14
Добавлен:
01.05.2014
Размер:
2.18 Кб
Скачать
// kursovikView.h : interface of the CKursovikView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_KURSOVIKVIEW_H__136D5C0C_6BAC_11D7_B12B_E0011B690D74__INCLUDED_)
#define AFX_KURSOVIKVIEW_H__136D5C0C_6BAC_11D7_B12B_E0011B690D74__INCLUDED_

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

struct CIntv { 
	 int x;
	 int y;
	 int color;
};

class TTree {
public:
	int val_1;
	int val_2;
	int color;
	TTree *lchild;
	TTree *rchild;
};

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

// Attributes
public:
	CKursovikDoc* GetDocument();

	
	int ClientX;
	int ClientY;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CKursovikView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	bool temp;
//	int N_otr;
	
	
	int elem;
	virtual ~CKursovikView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	
	//{{AFX_MSG(CKursovikView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnToolsEnterpoints();
	afx_msg void OnToolsEnterotrezok();
	afx_msg void OnToolsDeleteotrezok();
	afx_msg void OnToolsShowotrezok();
	afx_msg void clear();
	afx_msg void OnFileSaveAs();
	afx_msg void OnFileOpen();
	afx_msg void OnTools();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:

	
	CPoint* vec;
	
};

#ifndef _DEBUG  // debug version in kursovikView.cpp
inline CKursovikDoc* CKursovikView::GetDocument()
   { return (CKursovikDoc*)m_pDocument; }
#endif

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

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

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