-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstDialog.h
More file actions
71 lines (57 loc) · 1.55 KB
/
FirstDialog.h
File metadata and controls
71 lines (57 loc) · 1.55 KB
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
//#include "DemoProjectDlg.h"
#pragma once
#include "afxwin.h"
#include "ChartCtrl\Chartctrl.h"
#include "ChartCtrl\ChartLineSerie.h"
#include "ChartCtrl\Chartlabel.h"
#include"hpdf.h"
//Building graph
#include<map>
#include<vector>
//Exporting chart
#include <gdiplus.h>
#pragma comment(lib, "gdiplus.lib")
using namespace std;
// CFirstDialog dialog
class CFirstDialog : public CDialogEx
{
DECLARE_DYNAMIC(CFirstDialog)
public:
CFirstDialog(CWnd* pParent = NULL); // standard constructor
virtual ~CFirstDialog();
// Dialog Data
enum { IDD = IDD_DIALOG1 };
enum ChartImageFormat; //For exporting chart
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//For chart
HICON m_hIcon;
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
CComboBox m_First;
CComboBox m_Second;
afx_msg void OnBnClickedExportgraphbtn();
public:
CChartCtrl m_ChartCtrl;
CChartStandardAxis* pBottomAxis = NULL;
CChartStandardAxis* pLeftAxis = NULL;
CChartLineSerie* pSeries = NULL;
CString xValue;
CString yValue;
afx_msg void OnCbnSelchangeCombo1();
afx_msg void OnCbnSelchangeCombo2();
afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/);
bool xValFlag = false, yValFlag = false;
void CopyValues();
static CFirstDialog* child;
void insertInCombo();
void generateGraph();
afx_msg void OnExportdataExportgraph();
afx_msg void OnBnClickedExportPdf();
jmp_buf env;
void addHeaderPDF();
//map<CString, vector<double>> first_Map;
//map<CString, vector<double>>::iterator it = first_Map.begin();
};