-
Notifications
You must be signed in to change notification settings - Fork 2
/
BCGPChartExampleView.h
133 lines (110 loc) · 3.68 KB
/
BCGPChartExampleView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2014 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
//
// BCGPChartExampleView.h : interface of the CBCGPChartExampleView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_BCGPCHARTEXAMPLEVIEW_H__CB2F5435_9A0A_418C_8145_C809FAB94156__INCLUDED_)
#define AFX_BCGPCHARTEXAMPLEVIEW_H__CB2F5435_9A0A_418C_8145_C809FAB94156__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define YEARS_NUM 5
inline double Rand(double dblStart, double dblFinish)
{
double minVal = min(dblStart, dblFinish);
double maxVal = max(dblStart, dblFinish);
return (maxVal - minVal) * (double)rand() / (RAND_MAX + 1) + minVal;
}
class CBCGPChartExampleView : public CBCGPFormView
{
protected: // create from serialization only
CBCGPChartExampleView(UINT id = 0);
DECLARE_DYNCREATE(CBCGPChartExampleView)
// Form Data
public:
//{{AFX_DATA(CBCGPChartExampleView)
enum { IDD = IDD_FORM };
//}}AFX_DATA
// Attributes
public:
CBCGPChartExampleDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBCGPChartExampleView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBCGPChartExampleView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
virtual CBCGPChartVisualObject* GetChart()
{
return NULL;
}
virtual CBCGPBaseVisualCtrl* GetCtrl()
{
return NULL;
}
virtual void SetupLayout();
virtual void UpdateChartColorTheme(int nTheme);
virtual void OnChangeBackgroundDarkness() {}
void RotateChart(CBCGPRotationObject::RotationElement hit, double xDelta = 10., double yDelta = 10., double persperctiveDelta = 0.1);
void SetDefaultLineWidth();
// Generated message map functions
protected:
//{{AFX_MSG(CBCGPChartExampleView)
afx_msg void OnPaint();
//}}AFX_MSG
afx_msg void OnFilePrintPreview();
afx_msg LRESULT HandleInitDialog(WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
CString m_strTitle;
//CDemoFeature::Feature m_Feature;
BOOL m_bIsReady;
BOOL m_bIsDarkBackground;
BOOL m_bIsTexturedTheme;
BOOL m_bIsFlatTheme;
CBCGPGridCtrl* m_pCurrGrid;
CArray<CBCGPGridCtrl*, CBCGPGridCtrl*> m_arGrids;
int m_nCurrType;
public:
//sMaintain m_sMaintain;
//void InitMaintain();
//void InitNormalUserParas();
//void InitSuperUserParas();
//void InitPrerogativeUserParas();
//void InitLogFiles();
//void syscfginit();
//void init();
//lgfi logfile;
};
#ifndef _DEBUG // debug version in BCGPChartExampleView.cpp
inline CBCGPChartExampleDoc* CBCGPChartExampleView::GetDocument()
{ return (CBCGPChartExampleDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BCGPCHARTEXAMPLEVIEW_H__CB2F5435_9A0A_418C_8145_C809FAB94156__INCLUDED_)