-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathOptionsDlg.h
51 lines (40 loc) · 1.37 KB
/
OptionsDlg.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
#pragma once
#include "afxwin.h"
#include "CMyPropertyGridCtrl.h"
// Boîte de dialogue COptionsDlg
enum class enumOptionType {
TYPE_BOOL,
TYPE_TRISTATE,
TYPE_INT,
TYPE_LONG,
TYPE_STRING,
TYPE_WSTRING,
TYPE_WCHAR255
};
class COptionsDlg : public CDialogEx {
DECLARE_DYNAMIC(COptionsDlg)
public:
COptionsDlg(CWnd* pParent = NULL); // constructeur standard
virtual ~COptionsDlg();
// Données de boîte de dialogue
enum { IDD = IDD_OPTIONS };
protected:
bool testAnnotation = false;
std::vector<CMFCPropertyGridProperty*> vIntProperties;
std::vector<CMFCPropertyGridProperty*> vLongProperties;
std::vector<CMFCPropertyGridProperty*> vBoolProperties;
std::vector<CMFCPropertyGridProperty*> vTristateProperties;
std::vector<CMFCPropertyGridProperty*> vWStringProperties;
std::vector<CMFCPropertyGridProperty*> vWChar255Properties;
CMFCPropertyGridProperty* pAnnotationStyleProperty = NULL;
CMFCPropertyGridProperty* pAnnotationHighlightStyleProperty = NULL;
virtual void DoDataExchange(CDataExchange* pDX); // Prise en charge de DDX/DDV
void UpdateProperty(CMFCPropertyGridProperty* src, enumOptionType type);
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedBtnviewannotation();
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
CMyPropertyGridCtrl m_wndPropList;
};