/***************************************************************************** * * Copyright (c) 1999, KL GROUP INC. All Rights Reserved. * http://www.klgroup.com * * This file is provided for demonstration and educational uses only. * Permission to use, copy, modify and distribute this file for * any purpose and without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies, and that the name of KL Group not be used in advertising * or publicity pertaining to this material without the specific, * prior written permission of an authorized representative of * KL Group. * * KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY * DAMAGES SUFFERED BY USERS AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ // oc3_mvw.h : interface of the COC3_mfcView class // ///////////////////////////////////////////////////////////////////////////// class COC3_mfcView : public CView { protected: // create from serialization only COC3_mfcView(); DECLARE_DYNCREATE(COC3_mfcView) // Attributes public: COC3_mfcDoc *GetDocument(); CChart3D m_chart; CChart3DData * m_pData; CChart3DTextArea * m_pLabels[ 3 ]; BOOL m_bShowGridlines; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(COC3_mfcView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~COC3_mfcView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: void PaintChildWindows(HWND hWndParent, CDC* pDC, CPoint ptOffset); // Generated message map functions protected: //{{AFX_MSG(COC3_mfcView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg LRESULT OnOC3Repaint(WPARAM wParam, LPARAM lParam); afx_msg void OnDestroy(); afx_msg void OnUpdateViewGridlines(CCmdUI* pCmdUI); afx_msg void OnViewGridlines(); //}}AFX_MSG afx_msg BOOL OnQueryNewPalette(); afx_msg void OnPaletteChanged(CWnd* pFocusWnd); afx_msg LRESULT OnOC3PaletteChanged(WPARAM wParam, LPARAM lParam); DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in oc3_mvw.cpp inline COC3_mfcDoc* COC3_mfcView::GetDocument() { return (COC3_mfcDoc*)m_pDocument; } #endif /////////////////////////////////////////////////////////////////////////////