www.pudn.com > Graphicpach.rar > tempView.h
// tempView.h : interface of the CTempView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_TEMPVIEW_H__62BD22BA_A01F_470B_B8D0_9AC6DD1972E6__INCLUDED_) #define AFX_TEMPVIEW_H__62BD22BA_A01F_470B_B8D0_9AC6DD1972E6__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include#include #include #include static int year=0,day=0; class CTempView : public CView { protected: // create from serialization only CTempView(); DECLARE_DYNCREATE(CTempView) // Attributes public: CTempDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTempView) 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 reshape(int w,int h); BOOL SetupView(int cx, int cy); void display(void); void DrawScene(); virtual ~CTempView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: HGLRC m_hRC; //{{AFX_MSG(CTempView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: int m_height; int m_width; }; #ifndef _DEBUG // debug version in tempView.cpp inline CTempDoc* CTempView::GetDocument() { return (CTempDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TEMPVIEW_H__62BD22BA_A01F_470B_B8D0_9AC6DD1972E6__INCLUDED_)