-
Notifications
You must be signed in to change notification settings - Fork 3
/
DlgDL.h
77 lines (71 loc) · 1.85 KB
/
DlgDL.h
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
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "sbcommon.h"
class CDlgDL : public CDialogEx
{
DECLARE_DYNAMIC(CDlgDL)
public:
CDlgDL(CWnd* pParent, UINT nBrowserId);
virtual ~CDlgDL();
CWnd* m_pParent;
#ifdef AFX_DESIGN_TIME
enum
{
IDD = IDD_DLG_DOWNLOAD
};
#endif
CIconHelper m_hIcon;
protected:
virtual void DoDataExchange(CDataExchange* pDX);
BOOL m_bDLComp;
DECLARE_MESSAGE_MAP()
public:
UINT m_nBrowserId;
BOOL GetCompST() { return m_bDLComp; }
void SetCompST(BOOL bComp, LPCTSTR strFileFullPath);
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedCancel();
afx_msg void OnTimer(UINT_PTR nIDEvent);
INT_PTR m_iTimerID;
CProgressCtrl m_Prog;
CStatic m_FileName;
CStatic m_Msg;
CStatic m_Tf;
virtual BOOL OnInitDialog();
BOOL m_bDownloadProgress;
afx_msg void OnBnClickedButton1();
BOOL m_bDLCancel;
afx_msg void OnBnClickedButtonFo();
afx_msg void OnBnClickedButtonDiro();
CString m_strFileFullPath;
CString m_strFileFolderPath;
afx_msg void OnDestroy();
};
class ProgressDlg : public CDialogEx
{
DECLARE_DYNAMIC(ProgressDlg)
public:
CWnd* m_pParent;
ProgressDlg(CWnd* pParent = NULL);
virtual ~ProgressDlg();
void SetMsg(const CString& str);
void SetMsgExec(const CString& str);
UINT m_iCntg;
#pragma warning(push)
// C26812 列挙型 'type-name' はスコープ外です。 'enum' より 'enum class' を優先します (Enum.3)
// これはダイアログを自動生成した際に作成されるenumなので、enum classにせず、警告の方を無視する。
#pragma warning(disable : 26812)
enum
{
IDD = IDD_DLG_PROGRESS
};
#pragma warning(pop)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedCancel();
virtual BOOL OnInitDialog();
};