#include #include // WinVSXWView.h : interface of the CWinVSXWView class // ///////////////////////////////////////////////////////////////////////////// class CWinVSXWView : public CView { protected: // create from serialization only CWinVSXWView(); DECLARE_DYNCREATE(CWinVSXWView) // Attributes public: CWinVSXWDoc* GetDocument(); HGLRC m_hRC; HDC m_hDC; CPalette m_GLPalette; // Logical Palette // Operations public: void DrawFace(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CWinVSXWView) 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: virtual ~CWinVSXWView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: void InitializePalette(void); // Generated message map functions protected: //{{AFX_MSG(CWinVSXWView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnDestroy(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg BOOL OnQueryNewPalette(); afx_msg void OnPaletteChanged(CWnd* pFocusWnd); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in WinVSXWView.cpp inline CWinVSXWDoc* CWinVSXWView::GetDocument() { return (CWinVSXWDoc*)m_pDocument; } #endif /////////////////////////////////////////////////////////////////////////////