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