-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDemoProjectDlg.h
76 lines (60 loc) · 1.77 KB
/
DemoProjectDlg.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
//DemoProjectDlg.h : header file
//
#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "afxdialogex.h"
#include<map>
#include<string>
#include<vector>
//For chart
#include "ChartCtrl\ChartCtrl.h"
#include "ChartCtrl\ChartLineSerie.h"
#include "ChartCtrl\Chartlabel.h"
//For dialog
#include "FirstDialog.h"
#include "SecondDialog.h"
using namespace std;
// CDemoProjectDlg dialog
class CDemoProjectDlg : public CDialogEx
{
// Construction
public:
CDemoProjectDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_DEMOPROJECT_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedLoadFile();
CButton m_btnLoadFile;
afx_msg void buildTree();
private:
CTreeCtrl * TreeSoft;
//~CTree1Dlg();
HTREEITEM InsertItem(LPCTSTR lpszItem, HTREEITEM hParent = TVI_ROOT, HTREEITEM hInsertAfter = TVI_LAST );
public:
CTabCtrl m_Tab;
CWnd* m_pwndShow;
CFirstDialog m_firstDialog;
CSecondDialog m_secondDialog;
afx_msg void OnTcnSelchangeMainTab(NMHDR *pNMHDR, LRESULT *pResult);
static int X;
map<CString,vector<double>> m_dataMap; //if make static, it'll give fatal link error
map<CString,vector<double>> ::iterator it;
CListCtrl m_List;
void DeleteListControl(CListCtrl& listCtrl);
void LoadCSVFile(CString& filePath, std::map<CString,vector<double>>& m_dataMap);
//afx_msg void OnBnClickedOk();
static CDemoProjectDlg* basePointer; //for data pass
//int maxValInMap = INT_MIN, minValInMap = INT_MAX; //For setting chart axes
};