Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторные работы / 3 KG / 1KGView
.h// 1KGView.h : interface of the CMy1KGView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_1KGVIEW_H__B794FBC5_C94C_4351_9964_4A2CF08C723A__INCLUDED_)
#define AFX_1KGVIEW_H__B794FBC5_C94C_4351_9964_4A2CF08C723A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMy1KGView : public CView
{
protected: // create from serialization only
CMy1KGView();
DECLARE_DYNCREATE(CMy1KGView)
// Attributes
public:
CMy1KGDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy1KGView)
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:
void Serp(double,double,double,double,double,double );
void InitViewport(int x, int y, int width, int height);
int windW;
int windH;
CDC *m_pdc;
HGLRC hrc;
virtual ~CMy1KGView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMy1KGView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in 1KGView.cpp
inline CMy1KGDoc* CMy1KGView::GetDocument()
{ return (CMy1KGDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_1KGVIEW_H__B794FBC5_C94C_4351_9964_4A2CF08C723A__INCLUDED_)
Соседние файлы в папке 3 KG