-
Notifications
You must be signed in to change notification settings - Fork 1
/
CFilesToArcView.h
102 lines (84 loc) · 3.07 KB
/
CFilesToArcView.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
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
// DiskArcher.
// CFilesToArcView.h : interface of the CFilesToArcView class
// (C) Marat Mirgaleev, 2001-2002.
// Modifications:
// (1) 09.02.2002. GetSelectedFile() added.
// (3) 06.03.2002. "Go" and "Pause" buttons added.
// SetSubItems() added.
// (9) 16.01.2003. EraseList() moved into the base class.
//=====================================================================
#if !defined(AFX_FilesToArcVIEW_H__B23BE5F0_C975_423F_A345_9E50125FE4DC__INCLUDED_)
#define AFX_FilesToArcVIEW_H__B23BE5F0_C975_423F_A345_9E50125FE4DC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "CMyListView.h"
class CFilesToArcDoc;
class CFileToArc;
class CFilesToArcView : public CMyListView
{
protected: // create from serialization only
CFilesToArcView();
DECLARE_DYNCREATE(CFilesToArcView)
// Attributes
public:
CFilesToArcDoc* GetDocument();
CImageList m_ctlImage; // M
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFilesToArcView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
void UpdateList();
// (9) void EraseList();
void ShowFileList( CString showPath="" );
void SetSubItems( int nItem, CFileToArc* pFile ); // (3)
int GetSelectedItem(); // (3)
CFileToArc* GetSelectedFile(); // (1)
virtual ~CFilesToArcView() {};
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
void OnRightClick( NMHDR *pNotifyStruct, LRESULT *result );
int m_nIDColumn; // Current position of ID's column
int m_nSizeColumn; // Current position of Size column
int m_nModifiedColumn; // Current position of Modified column
int m_nStatusColumn; // (3) Current position of Status column
// Generated message map functions
protected:
void ShowPopupMenu( int nItemSel, CPoint curPoint );
//{{AFX_MSG(CFilesToArcView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFileToArcShowCopies();
afx_msg void OnUpdateShowCopies(CCmdUI* pCmdUI);
afx_msg void OnKeyDown(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnUpdateUpdateFiles(CCmdUI* pCmdUI);
afx_msg void OnUpdateFiles();
afx_msg void OnFileToArcDelete();
afx_msg void OnUpdateFileToArcDelete(CCmdUI* pCmdUI);
afx_msg void OnUpdateFileToArcGo(CCmdUI* pCmdUI);
afx_msg void OnFileToArcGo();
afx_msg void OnUpdateFileToArcPause(CCmdUI* pCmdUI);
afx_msg void OnFileToArcPause();
afx_msg void OnUpdateFileToArcProperties(CCmdUI* pCmdUI);
afx_msg void OnFileToArcProperties();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in FilesToArcView.cpp
inline CFilesToArcDoc* CFilesToArcView::GetDocument()
{ return (CFilesToArcDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FilesToArcVIEW_H__B23BE5F0_C975_423F_A345_9E50125FE4DC__INCLUDED_)