www.pudn.com > sun-moon-earth.rar > sunView.h


// sunView.h : interface of the CSunView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_SUNVIEW_H__0EE6E741_1C0C_438B_9B14_BCA28934F076__INCLUDED_) 
#define AFX_SUNVIEW_H__0EE6E741_1C0C_438B_9B14_BCA28934F076__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "math.h" 
static int revolution=0,rotation=0; 
#define PI 3.1415926535898 
 
class CSunView : public CView 
{ 
protected: // create from serialization only 
	CSunView(); 
	DECLARE_DYNCREATE(CSunView) 
 
// Attributes 
public: 
	CSunDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSunView) 
	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: 
	HGLRC hglrc; 
	void drawcircle(); 
	void rotationclockwise(void); 
	void rotationanticlockwise(void); 
	void revlockwise(void); 
	void revanticlockwise(void); 
	void drawscene(void); 
	virtual ~CSunView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CSunView) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in sunView.cpp 
inline CSunDoc* CSunView::GetDocument() 
   { return (CSunDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SUNVIEW_H__0EE6E741_1C0C_438B_9B14_BCA28934F076__INCLUDED_)