/***************************************************************************** * * 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 // ///////////////////////////////////////////////////////////////////////////// #include "ChartGroup.h" #include "Axis.h" #include "Interior.h" //{{AFX_INCLUDES() #include "chart3d.h" //}}AFX_INCLUDES #if !defined(AFX_BARSVIEW_H__EC270C1A_5115_11D1_AA18_00A0245E13F3__INCLUDED_) #define AFX_BARSVIEW_H__EC270C1A_5115_11D1_AA18_00A0245E13F3__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 class CBarsView : public CFormView { protected: // create from serialization only CBarsView(); DECLARE_DYNCREATE(CBarsView) int m_LastRow, m_LastCol; int m_PickRow, m_PickCol; bool m_IsModifying; int m_HeaderColor, m_FooterColor, m_RegionSaveColor, m_SaveColor; int m_HiLiteColor, m_BarHiLiteColor; int m_Region, m_OldRegion; CChartGroup m_cGroup; CAxis m_AxisX; CAxis m_AxisY; CAxis m_AxisZ; CInterior m_Interior; void RemoveLabel(); void RemoveHiLite(); void AddHiLite(long x, long y); void UpdateFooter(long Row, long Col); public: //{{AFX_DATA(CBarsView) enum { IDD = IDD_BARS_FORM }; CChart3D m_chart; //}}AFX_DATA // Attributes public: CBarsDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBarsView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation public: virtual ~CBarsView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CBarsView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void Chart_OnMouseDown(short Button, short Shift, long x, long y); afx_msg void Chart_OnMouseMove(short Button, short Shift, long x, long y); afx_msg void Chart_OnMouseUp(short Button, short Shift, long x, long y); afx_msg void Chart_OnModifyEnd(); afx_msg void Chart_OnModifyStart(BOOL FAR* IsOK); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnFontStroke(); afx_msg void OnUpdateFontStroke(CCmdUI* pCmdUI); afx_msg void OnFontTruetype(); afx_msg void OnUpdateFontTruetype(CCmdUI* pCmdUI); DECLARE_EVENTSINK_MAP() //}}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__EC270C1A_5115_11D1_AA18_00A0245E13F3__INCLUDED_)