/***************************************************************************** * * 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. */ // ParetoView.h : interface of the CParetoView class // ///////////////////////////////////////////////////////////////////////////// #include "Chart2D.h" #if !defined(AFX_PARETOVIEW_H__C12722AD_448D_11D1_AA18_00A0245E13F3__INCLUDED_) #define AFX_PARETOVIEW_H__C12722AD_448D_11D1_AA18_00A0245E13F3__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 class CParetoView : public CView { protected: // create from serialization only CParetoView(); DECLARE_DYNCREATE(CParetoView) void GenerateTheChartData(); void SetupTheChart(); void SortTheData(); // Attributes public: CParetoDoc* GetDocument(); CChart2D m_chart; long TotalPoints; double TotalValue; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CParetoView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~CParetoView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CParetoView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnRegenerate(); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in ParetoView.cpp inline CParetoDoc* CParetoView::GetDocument() { return (CParetoDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PARETOVIEW_H__C12722AD_448D_11D1_AA18_00A0245E13F3__INCLUDED_)