// cubeview.h : interface of the CCubeView class // // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. class CCubeView : public CView { protected: // create from serialization only CCubeView(); DECLARE_DYNCREATE(CCubeView) // Attributes public: CCubeDoc* GetDocument(); CPalette m_cPalette; CPalette *m_pOldPalette; CRect m_oldRect; float m_fRadius; CClientDC *m_pDC; // Operations public: void Init(); void CreateRGBPalette(void); BOOL bSetupPixelFormat(void); unsigned char ComponentFromIndex(int i, UINT nbits, UINT shift); void DrawScene(void); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCubeView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view //}}AFX_VIRTUAL // Implementation public: virtual ~CCubeView(); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: BOOL m_play; // Generated message map functions protected: //{{AFX_MSG(CCubeView) afx_msg void OnFilePlay(); afx_msg void OnUpdateFilePlay(CCmdUI* pCmdUI); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnTimer(UINT nIDEvent); afx_msg BOOL OnEraseBkgnd(CDC* pDC); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in cubeview.cpp inline CCubeDoc* CCubeView::GetDocument() { return (CCubeDoc*)m_pDocument; } #endif /////////////////////////////////////////////////////////////////////////////