// ClockView.h : interface of the CClockView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_CLOCKVIEW_H__11A92488_83A3_4210_856F_7A6D1572C5B2__INCLUDED_) #define AFX_CLOCKVIEW_H__11A92488_83A3_4210_856F_7A6D1572C5B2__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CClockView : public CView { int clock_w; int clock_h; int clock_dx; int clock_dy; int font_size; CFont m_Font; CBrush m_Brush; CPen m_BluePen; CPen m_BlackPen; CPen m_RedPen; // Cosines, sinuses used to draw the clock face static double cosines[12], sinuses[12]; static BOOL bCosinesCalculated; protected: // create from serialization only CClockView(); DECLARE_DYNCREATE(CClockView) // Attributes public: CClockDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CClockView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual void PostNcDestroy(); //}}AFX_VIRTUAL // Implementation public: virtual ~CClockView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CClockView) afx_msg BOOL OnEraseBkgnd(CDC* pDC); //}}AFX_MSG afx_msg LONG OnWMUser(UINT, LONG); DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in ClockView.cpp inline CClockDoc* CClockView::GetDocument() { return (CClockDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_CLOCKVIEW_H__11A92488_83A3_4210_856F_7A6D1572C5B2__INCLUDED_)