00001
00002
00003
00004 #if !defined(AFX_CHARTDEMODLG_H__1C3B17D7_0821_47FC_B873_9D9337728F79__INCLUDED_)
00005 #define AFX_CHARTDEMODLG_H__1C3B17D7_0821_47FC_B873_9D9337728F79__INCLUDED_
00006
00007 #if _MSC_VER > 1000
00008 #pragma once
00009 #endif // _MSC_VER > 1000
00010
00011 #include "ChartCtrl.h"
00012 #include "ColourPicker.h"
00013 #include "ChartLineSerie.h"
00014 #include "ChartLabel.h"
00015
00017
00018
00019 class CChartDemoDlg : public CDialog
00020 {
00021
00022 public:
00023 CChartDemoDlg(CWnd* pParent = NULL);
00024
00025
00026
00027 enum { IDD = IDD_CHARTDEMO_DIALOG };
00028 CEdit m_TitlesEdit;
00029 CListBox m_SeriesList;
00030 CEdit m_AxisMinValEdit;
00031 CEdit m_AxisMaxValEdit;
00032 CButton m_LegendVisBtn;
00033 CColourPicker m_BackgndColSel;
00034
00035
00036
00037
00038 protected:
00039 virtual void DoDataExchange(CDataExchange* pDX);
00040
00041
00042
00043 protected:
00044 HICON m_hIcon;
00045
00046
00047
00048 virtual BOOL OnInitDialog();
00049 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00050 afx_msg void OnPaint();
00051 afx_msg HCURSOR OnQueryDragIcon();
00052 afx_msg void OnAddseries();
00053 afx_msg void OnLegendVisible();
00054 afx_msg void OnBottomAxisRadio();
00055 afx_msg void OnLeftAxisRadio();
00056 afx_msg void OnRightAxisRadio();
00057 afx_msg void OnTopAxisRadio();
00058 afx_msg void OnAxisAutomaticCheck();
00059 afx_msg void OnAxisGridVisCheck();
00060 afx_msg void OnAxisLogarithmicCheck();
00061 afx_msg void OnAxisVisibleCheck();
00062 afx_msg void OnAxisScrollBarCheck();
00063 afx_msg LONG OnChangeBckCol(UINT lParam, LONG wParam);
00064 afx_msg void OnChangeAxisMax();
00065 afx_msg void OnChangeAxisMin();
00066 afx_msg void OnAxisInvertedCheck();
00067 afx_msg void OnChangeAxisLabel();
00068 afx_msg void OnDeleteSeries();
00069 afx_msg void OnChangeTitle();
00070 afx_msg void OnPanCheck();
00071 afx_msg void OnZoomCheck();
00072
00073 DECLARE_MESSAGE_MAP()
00074
00075 CChartAxis* GetSelectedAxis();
00076
00077 CChartCtrl m_ChartCtrl;
00078 CChartLineSerie* m_pSerie;
00079 };
00080
00081
00082
00083
00084 #endif // !defined(AFX_CHARTDEMODLG_H__1C3B17D7_0821_47FC_B873_9D9337728F79__INCLUDED_)