www.pudn.com > lesson6.rar > lesson1View.h
// lesson1View.h : interface of the CLesson1View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_LESSON1VIEW_H__638CF0AA_DB62_4D24_92BF_FDB23F516C80__INCLUDED_)
#define AFX_LESSON1VIEW_H__638CF0AA_DB62_4D24_92BF_FDB23F516C80__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
extern int size1;
class CLesson1View : public CView
{
protected: // create from serialization only
CLesson1View();
DECLARE_DYNCREATE(CLesson1View)
// Attributes
public:
CLesson1Doc* GetDocument();
CClientDC *m_pDC;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLesson1View)
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 teapotshow(float teasize);
void drawpoint();
void DrawSceneinit();
bool bSetupPixelFormat();
void init();
virtual ~CLesson1View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CLesson1View)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPointDisplay();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLightDiplay();
afx_msg void OnImageDisplay();
afx_msg void OnGlobe();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
float viewteasize;
};
#ifndef _DEBUG // debug version in lesson1View.cpp
inline CLesson1Doc* CLesson1View::GetDocument()
{ return (CLesson1Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LESSON1VIEW_H__638CF0AA_DB62_4D24_92BF_FDB23F516C80__INCLUDED_)