-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCLogDialog.cpp
More file actions
48 lines (34 loc) · 903 Bytes
/
CLogDialog.cpp
File metadata and controls
48 lines (34 loc) · 903 Bytes
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
// CLogDialog.cpp : implementation file
//
#include "stdafx.h"
#include "CLogDialog.h"
#include "afxdialogex.h"
#include "resource.h"
// CLogDialog dialog
IMPLEMENT_DYNAMIC(CLogDialog, CDialog)
CLogDialog::CLogDialog(novac::ILogger& log, CWnd* pParent /*=nullptr*/)
: m_log(log), CDialog(IDD_VIEW_LOG_DIALOG, pParent)
{
}
CLogDialog::~CLogDialog()
{
}
BOOL CLogDialog::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: How to handle this ??
/* for (const std::string& msg : this->m_logEntries)
{
m_listBox.AddString(msg.c_str());
}
*/
return TRUE; // return TRUE unless you set the focus to a control
}
void CLogDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_MESSAGE_LIST, m_listBox);
}
BEGIN_MESSAGE_MAP(CLogDialog, CDialog)
END_MESSAGE_MAP()
// CLogDialog message handlers