-
Notifications
You must be signed in to change notification settings - Fork 29
/
CBD_SeeResultsDlg.cpp
52 lines (40 loc) · 1.11 KB
/
CBD_SeeResultsDlg.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
/*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#include "stdafx.h"
#include "FdmApp.h"
#include "CBD_SeeResultsDlg.h"
#include "vmsBatchList.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CCBD_SeeResultsDlg::CCBD_SeeResultsDlg(CWnd* pParent )
: CDialog(CCBD_SeeResultsDlg::IDD, pParent)
{
m_bl = NULL;
}
void CCBD_SeeResultsDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCBD_SeeResultsDlg)
DDX_Control(pDX, IDC_LIST, m_wndList);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCBD_SeeResultsDlg, CDialog)
//{{AFX_MSG_MAP(CCBD_SeeResultsDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL CCBD_SeeResultsDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CRect rc;
m_wndList.GetClientRect (&rc);
m_wndList.InsertColumn (0, _T(""), LVCFMT_LEFT, rc.right);
for (int i = 0; i < m_bl->get_ResultCount (); i++)
m_wndList.InsertItem (i, m_bl->get_Result (i));
m_wndList.SetColumnWidth (0, LVSCW_AUTOSIZE);
SetWindowText (LS (L_SEERESULTS));
return TRUE;
}