-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrfvfsDlg.h
88 lines (76 loc) · 2.46 KB
/
rfvfsDlg.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
// rfvfsDlg.h : header file
//
#if !defined(AFX_RFVFSDLG_H__C0560EA6_F2FD_11D4_85EA_0060674A702D__INCLUDED_)
#define AFX_RFVFSDLG_H__C0560EA6_F2FD_11D4_85EA_0060674A702D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxtempl.h>
#include "FileTreeCtrl.h"
#include "EllepticalButton.h"
#include "basetype.h"
#include "ram.h"
#include "vfile.h"
/////////////////////////////////////////////////////////////////////////////
// CRfvfsDlg dialog
class CRfvfsDlg : public CDialog
{
// Construction
public:
CRfvfsDlg(CWnd* pParent = NULL); // standard constructor
void SetupDirectory();
BOOL EmptyDirectory(CString &sPath);
TCHAR m_currentdir[512];
// Dialog Data
//{{AFX_DATA(CRfvfsDlg)
enum { IDD = IDD_RFVFS_DIALOG };
CEllepticalButton m_buttonsave;
CEllepticalButton m_buttonmkdir;
CEllepticalButton m_buttonextract;
CEllepticalButton m_buttondel;
CEllepticalButton m_buttonrename;
CEllepticalButton m_buttonopen;
CEllepticalButton m_buttonnew;
CEllepticalButton m_buttonadd;
CTreeFileCtrl m_dirtree;
BOOL m_encrypt;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRfvfsDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CString vfsFileName;
CString WinText;
void ExtractVFS(geVFile *VFS, const char *FileSpec);
void CopyVFile(geVFile * FmFile,geVFile *ToFile);
void CopyOneFile(geVFile *FSSrc, geVFile *FSDest, const char *src, const char *dest);
void GetDir(CString &Path, geVFile *VFS);
void GetFiles(CString &Path, geVFile *VFS);
bool MakeDirectory(geVFile *FS, const char *Path);
void CopyFile(const char *srcPath, const char *destPath);
// Generated message map functions
//{{AFX_MSG(CRfvfsDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnItemexpandingTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton6();
afx_msg void OnButton5();
afx_msg void OnButton7();
afx_msg void OnButton8();
afx_msg void OnButton4();
afx_msg void OnCheck1();
afx_msg void OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RFVFSDLG_H__C0560EA6_F2FD_11D4_85EA_0060674A702D__INCLUDED_)