Скачиваний:
16
Добавлен:
01.05.2014
Размер:
2.04 Кб
Скачать
// lab3View.h : interface of the CLab3View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LAB3VIEW_H__0D9AB96E_A072_11D9_A521_00D04C39012A__INCLUDED_)
#define AFX_LAB3VIEW_H__0D9AB96E_A072_11D9_A521_00D04C39012A__INCLUDED_

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


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

// Attributes
public:
	CLab3Doc* GetDocument();

// Operations
public:

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

// Implementation
public:
	virtual ~CLab3View();
	int DrawScene();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	const double delta;
	double z;
	double y;
	double x;
	int DrawCat();
	bool m_fAction;
	//{{AFX_MSG(CLab3View)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int SetWindowPixelFormat(HDC);
	HGLRC hGLRC;
	CClientDC *pdc;
};

#ifndef _DEBUG  // debug version in lab3View.cpp
inline CLab3Doc* CLab3View::GetDocument()
   { return (CLab3Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_LAB3VIEW_H__0D9AB96E_A072_11D9_A521_00D04C39012A__INCLUDED_)
Соседние файлы в папке Лабораторная работа №37