forked from WinMerge/winmerge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DDXHelper.h
40 lines (34 loc) · 973 Bytes
/
DDXHelper.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
#pragma once
inline void DDX_Check(CDataExchange* pDX, int nIDC, bool& value)
{
BOOL BOOL_value = value;
DDX_Check(pDX, nIDC, BOOL_value);
value = !!BOOL_value;
}
inline void DDX_Radio(CDataExchange* pDX, int nIDC, bool& value)
{
BOOL BOOL_value = value;
DDX_Radio(pDX, nIDC, BOOL_value);
value = !!BOOL_value;
}
template<typename T>
inline void DDX_Text(CDataExchange* pDX, int nIDC, std::basic_string<T>& value)
{
CString cstrValue = value.c_str();
DDX_Text(pDX, nIDC, cstrValue);
value = cstrValue;
}
template<typename T>
inline void DDX_CBString(CDataExchange* pDX, int nIDC, std::basic_string<T>& value)
{
CString cstrValue = value.c_str();
DDX_CBString(pDX, nIDC, cstrValue);
value = cstrValue;
}
template<typename T>
inline void DDX_CBStringExact(CDataExchange* pDX, int nIDC, std::basic_string<T>& value)
{
CString cstrValue = value.c_str();
DDX_CBStringExact(pDX, nIDC, cstrValue);
value = cstrValue;
}