-
Notifications
You must be signed in to change notification settings - Fork 2
/
ConflictDlg.cpp
115 lines (102 loc) · 2.61 KB
/
ConflictDlg.cpp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/******************************************************************************
** (C) Chris Oldwood
**
** MODULE: CONFLICTDLG.CPP
** COMPONENT: The Application
** DESCRIPTION: CConflictDlg class definition.
**
*******************************************************************************
*/
#include "Common.hpp"
#include "ConflictDlg.hpp"
#include "UTCMGRApp.hpp"
#include "HelpTopics.h"
/******************************************************************************
** Method: Default constructor.
**
** Description: .
**
** Parameters: None.
**
** Returns: Nothing.
**
*******************************************************************************
*/
CConflictDlg::CConflictDlg()
: CDialog(IDD_CONFLICT)
{
DEFINE_CTRL_TABLE
CTRL(IDC_FILENAME_1, &m_ssFileName1)
CTRL(IDC_FILEINFO_1, &m_ssFileInfo1)
CTRL(IDC_FILENAME_2, &m_ssFileName2)
CTRL(IDC_FILEINFO_2, &m_ssFileInfo2)
END_CTRL_TABLE
DEFINE_CTRLMSG_TABLE
CMD_CTRLMSG(IDYES, BN_CLICKED, &CConflictDlg::OnYes )
CMD_CTRLMSG(IDYESALL, BN_CLICKED, &CConflictDlg::OnYesAll)
CMD_CTRLMSG(IDNO, BN_CLICKED, &CConflictDlg::OnNo )
CMD_CTRLMSG(IDNOALL, BN_CLICKED, &CConflictDlg::OnNoAll )
END_CTRLMSG_TABLE
}
/******************************************************************************
** Method: OnInitDialog()
**
** Description: Initialise the dialog.
**
** Parameters: None.
**
** Returns: Nothing.
**
*******************************************************************************
*/
void CConflictDlg::OnInitDialog()
{
// Set the filename and info strings.
m_ssFileName1.Text(m_strFileName1);
m_ssFileInfo1.Text(m_strFileInfo1);
m_ssFileName2.Text(m_strFileName2);
m_ssFileInfo2.Text(m_strFileInfo2);
}
/******************************************************************************
** Methods: OnYes()/OnYesAll()/OnMo()/OnNoAll()
**
** Description: Close the dialog, returning the button code.
**
** Parameters: None.
**
** Returns: Nothing.
**
*******************************************************************************
*/
void CConflictDlg::OnYes()
{
EndDialog(IDYES);
}
void CConflictDlg::OnYesAll()
{
EndDialog(IDYESALL);
}
void CConflictDlg::OnNo()
{
EndDialog(IDNO);
}
void CConflictDlg::OnNoAll()
{
EndDialog(IDNOALL);
}
/******************************************************************************
** Method: OnHelp()
**
** Description: Help requested for the dialog.
**
** Parameters: See HELPINFO.
**
** Returns: Nothing.
**
*******************************************************************************
*/
void CConflictDlg::OnHelp(HELPINFO& /*oInfo*/)
{
// Show the dialogs help topic.
App.m_oHelpFile.Topic(IDH_CONFLICTDLG);
}