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

📄 lockfiledlg.h

📁 一个Windows下的文件加密工具
💻 H
字号:
// LockFileDlg.h : header file
//

#if !defined(AFX_LOCKFILEDLG_H__5DF982E7_C9AB_11D3_9F78_0080C8EC6824__INCLUDED_)
#define AFX_LOCKFILEDLG_H__5DF982E7_C9AB_11D3_9F78_0080C8EC6824__INCLUDED_

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

#define MSG_LEN	48

#define _LOG_FILE	"C:\\LockFile.log"

/////////////////////////////////////////////////////////////////////////////
// CLockFileDlg dialog

class CLockFileDlg : public CDialog
{
// Construction
public:
	CLockFileDlg(CWnd* pParent = NULL);	// standard constructor

	void LockFile(CString DirName,CString FileName,CString Password);
	bool IsDir(char* pFileName);
	bool IsDir(CString strFileName);
	void DisplayMessage(char* pMsg,char* pExt=NULL);
	void DisplayMessage(CString str,char* pExt=NULL);
	void DisplayMessage(CString str,CString Ext);
	void DisplayMessage(char* pMsg,CString Ext);
	void GetShortName(char* pShortName,char* pLongName);
	void GetDispName(char* pShortName,char* pLongName);
	void GetDispName(CString& strShortName,CString strLongName);
	bool m_Busy,m_isNet;
	int m_DirNum,m_TotalFileNum,m_OkFileNum;

// Dialog Data
	//{{AFX_DATA(CLockFileDlg)
	enum { IDD = IDD_LOCKFILE };
	CListBox	m_MsgList;
	CString	m_FileName;
	CString	m_Password;
	BOOL	m_SubDirFlg;
	CString	m_SurePassword;
	BOOL	m_Hidden;
	BOOL	m_Readonly;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CLockFileDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnLock();
	afx_msg void OnView();
	afx_msg void OnChanged();
	afx_msg void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
	CAboutDlg();

// Dialog Data
	//{{AFX_DATA(CAboutDlg)
	enum { IDD = IDD_ABOUTBOX };
	//}}AFX_DATA

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

// Implementation
protected:
	//{{AFX_MSG(CAboutDlg)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// CSecurityDlg dialog

class CSecurityDlg : public CDialog
{
// Construction
public:
	CSecurityDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSecurityDlg)
	enum { IDD = IDD_SECURITY };
	CString	m_Password;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSecurityDlg)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

void PassData(char* pDataBuf,DWORD DataLen,CString Password);

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

#endif // !defined(AFX_LOCKFILEDLG_H__5DF982E7_C9AB_11D3_9F78_0080C8EC6824__INCLUDED_)

⌨️ 快捷键说明

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