1 // DeleteConflictDlg.cpp : implementation file
6 #include "DeleteConflictDlg.h"
9 // CDeleteConflictDlg dialog
11 IMPLEMENT_DYNAMIC(CDeleteConflictDlg
, CResizableStandAloneDialog
)
13 CDeleteConflictDlg::CDeleteConflictDlg(CWnd
* pParent
/*=NULL*/)
14 : CResizableStandAloneDialog(CDeleteConflictDlg::IDD
, pParent
)
16 , m_LocalStatus(_T(""))
17 , m_RemoteStatus(_T(""))
22 CDeleteConflictDlg::~CDeleteConflictDlg()
26 void CDeleteConflictDlg::DoDataExchange(CDataExchange
* pDX
)
28 CDialog::DoDataExchange(pDX
);
30 DDX_Text(pDX
, IDC_LOCAL_STATUS
, m_LocalStatus
);
31 DDX_Text(pDX
, IDC_REMOTE_STATUS
, m_RemoteStatus
);
35 BEGIN_MESSAGE_MAP(CDeleteConflictDlg
, CResizableStandAloneDialog
)
36 ON_BN_CLICKED(IDC_DELETE
, &CDeleteConflictDlg::OnBnClickedDelete
)
37 ON_BN_CLICKED(IDC_MODIFY
, &CDeleteConflictDlg::OnBnClickedModify
)
41 BOOL
CDeleteConflictDlg::OnInitDialog()
43 CResizableStandAloneDialog::OnInitDialog();
44 AddAnchor(IDC_DEL_GROUP
, TOP_LEFT
, BOTTOM_RIGHT
);
45 AddAnchor(IDC_DELETE
, BOTTOM_RIGHT
);
46 AddAnchor(IDC_MODIFY
, BOTTOM_RIGHT
);
47 AddAnchor(IDCANCEL
, BOTTOM_RIGHT
);
49 if(this->m_bShowModifiedButton
)
50 this->GetDlgItem(IDC_MODIFY
)->SetWindowText(_T("Modified"));
52 this->GetDlgItem(IDC_MODIFY
)->SetWindowText(_T("Created"));
55 this->GetWindowText(title
);
56 title
+=_T(" - ") +this->m_File
;
57 this->SetWindowText(title
);
60 // CDeleteConflictDlg message handlers
62 void CDeleteConflictDlg::OnBnClickedDelete()
64 // TODO: Add your control notification handler code here
69 void CDeleteConflictDlg::OnBnClickedModify()
71 // TODO: Add your control notification handler code here