/***************************************************************************** * * 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. */ // barsView.h : interface of the CBarsView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_BARSVIEW_H__EBFCF809_64D5_11D1_B738_00A024C3C1C2__INCLUDED_) #define AFX_BARSVIEW_H__EBFCF809_64D5_11D1_B738_00A024C3C1C2__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 class CBarsView : public CView { protected: // create from serialization only CBarsView(); DECLARE_DYNCREATE(CBarsView) // Attributes public: CBarsDoc* GetDocument(); CChart3D m_chart; CChart3DData* m_pData; CChart3DTextArea* m_pLabel; protected: int m_nLastRow, m_nLastCol; int m_nPickRow, m_nPickCol; BOOL m_bIsModifying; Xrt3dRegion m_rgnRegion, m_rgnOldRegion; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBarsView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); virtual void OnInitialUpdate(); //}}AFX_VIRTUAL // Implementation public: virtual ~CBarsView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: void UpdateFooter(long Row, long Col); void AddHiLite(long x, long y); void RemoveHiLite(void); // Generated message map functions protected: //{{AFX_MSG(CBarsView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnFontStroke(); afx_msg void OnFontTruetype(); afx_msg void OnUpdateFontStroke(CCmdUI* pCmdUI); afx_msg void OnUpdateFontTruetype(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in barsView.cpp inline CBarsDoc* CBarsView::GetDocument() { return (CBarsDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BARSVIEW_H__EBFCF809_64D5_11D1_B738_00A024C3C1C2__INCLUDED_)