⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 z_filedlg.h

📁 一个VC版的压缩和解压缩应用程序源代码
💻 H
字号:
// z_fileDlg.h : header file
//

#if !defined(AFX_Z_FILEDLG_H__3F71CB4C_E6D6_4868_9238_15B5BAAAE1F7__INCLUDED_)
#define AFX_Z_FILEDLG_H__3F71CB4C_E6D6_4868_9238_15B5BAAAE1F7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CZ_fileDlg dialog

class CZ_fileDlg : public CDialog
{
// Construction
public:
	CZ_fileDlg(CWnd* pParent = NULL);	// standard constructor
	void ComPressDirToDir(CString strSrcPath,CString strDstPath);//压缩目录到指定目录
	void DeComPressDirToDir(CString strSrcPath,CString strDstPath);//解压缩目录到指定目录
	//压缩文件,strSrcFileName-原文件名(包括全路径),strDstFileName-目标文件名(包括全路径)
	BOOL ComPress_File(CString strSrcFileName,CString strDstFileName);
	//解压缩文件,strSrcFileName-原文件名(包括全路径),strDstFileName-目标文件名(包括全路径)
	BOOL DeComPress_File(CString strSrcFileName,CString strDstFileName);

// Dialog Data
	//{{AFX_DATA(CZ_fileDlg)
	enum { IDD = IDD_Z_FILE_DIALOG };
	CProgressCtrl	m_Progress;
	CString	m_strDstPath;
	CString	m_strSrcPath;
	CString	m_strDecompressPath;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CZ_fileDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CZ_fileDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnDstBrowsebtn();
	afx_msg void OnSrcBrowsebtn();
	virtual void OnOK();
	afx_msg void OnBtnDecompress();
	afx_msg void OnDstDecompressBrowsebtn();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_Z_FILEDLG_H__3F71CB4C_E6D6_4868_9238_15B5BAAAE1F7__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -