-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDownloadDlg.cpp
59 lines (43 loc) · 1.13 KB
/
DownloadDlg.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
// DownloadDlg.cpp : implementation file
//
#include "stdafx.h"
#include "myget.h"
#include "DownloadDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDownloadDlg
IMPLEMENT_DYNAMIC(CDownloadDlg, CPropertySheet)
CDownloadDlg::CDownloadDlg(LPCTSTR pszCaption, int iDlgType, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
InitDlg(iDlgType);
}
CDownloadDlg::~CDownloadDlg()
{
}
BEGIN_MESSAGE_MAP(CDownloadDlg, CPropertySheet)
//{{AFX_MSG_MAP(CDownloadDlg)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDownloadDlg message handlers
void CDownloadDlg::prv_SetupSheet()
{
m_psh.dwFlags |= PSH_NOAPPLYNOW;
m_psh.dwFlags &= ~PSH_HASHELP;
}
void CDownloadDlg::prv_AddPages()
{
AddPage(&m_pageProperty);
}
void CDownloadDlg::InitDlg(int iDlgType)
{
m_pageProperty.m_iDlgType = iDlgType;
prv_SetupSheet();
prv_AddPages();
}