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
|
CDialog2::CDialog2(CWnd* pParent /*=NULL*/)
: CTplDlgColor<CDialog>(CDialog2::IDD, pParent)
{
//{{AFX_DATA_INIT(CDialog2)
m_strAxeS = _T("");
m_strAxeL = _T("");
m_strAxeU = _T("");
m_strAxeR = _T("");
m_strAxeB = _T("");
m_strAxeT = _T("");
//}}AFX_DATA_INIT
}
void CDialog2::DoDataExchange(CDataExchange* pDX)
{
CTplDlgColor<CDialog>::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDialog2)
DDX_Text(pDX, IDC_EDIT_AXE_S, m_strAxeS);
DDX_Text(pDX, IDC_EDIT_AXE_L, m_strAxeL);
DDX_Text(pDX, IDC_EDIT_AXE_U, m_strAxeU);
DDX_Text(pDX, IDC_EDIT_AXE_R, m_strAxeR);
DDX_Text(pDX, IDC_EDIT_AXE_B, m_strAxeB);
DDX_Text(pDX, IDC_EDIT_AXE_T, m_strAxeT);
//}}AFX_DATA_MAP
}
BOOL CDialog2::OnInitDialog()
{
CTplDlgColor<CDialog>::OnInitDialog();
SetDialogBkColor(/*RGB(193, 193, 255)*/RGB(51,102,153), RGB(255, 255, 255));
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CDialog2::OnOK()
{
CTplDlgColor<CDialog>::OnOK();
}
void CDialog2::PostNcDestroy()
{
CTplDlgColor<CDialog>::PostNcDestroy();
delete this;
} |
Partager