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

📄 dlgrecoveprogress.h

📁 COM 组建的开发
💻 H
字号:
#if !defined(AFX_DLGRECOVEPROGRESS_H__FD8836FC_F6BB_4D22_828A_A4306AF829F9__INCLUDED_)
#define AFX_DLGRECOVEPROGRESS_H__FD8836FC_F6BB_4D22_828A_A4306AF829F9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgRecoveProgress.h : header file
//
#include <afxcmn.h>
#include "RecoveSelectFile.h"
#include "XListBox.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgRecoveProgress dialog

class CDlgRecoveProgress : public CDialog
{
// Construction
public:
	void SetPwd(const CString strPwd);
	CDlgRecoveProgress(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgRecoveProgress)
	enum { IDD = IDD_DIALOG_RECOVE_PROGRESS };
	CXListBox	m_listbox;
	CProgressCtrl	m_ProgressCtrl;
	//}}AFX_DATA


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

// Implementation
protected:
	CString m_strPwd;

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

protected:
	afx_msg LRESULT OnSetTitle(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT OnRcSendMsg(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT OnRcPostMsg(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT OnPostProgressMsg(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT OnAutoExit(WPARAM wParam,LPARAM lParam);
	// 启动工作线程 [5/16/2008 By willing]
	int Run();
	// 实现还原文件的主线程函数 [5/16/2008 By willing]
	static DWORD WINAPI RecoveThread(LPVOID lParam);
	// 停止工作线程 [5/16/2008 By willing]
	int Stop();

	// 设置要显示的信息 [6/1/2007 by willing]
	void SetMsg(CString strMsg,int nColorIndex);
	// 还原并写入 [6/18/2008 By willing]
	int WriteBuffer(CFile &m_File,char *ptrBuffer,DWORD dwLen,const int nSuanFa);
	
private:
	HANDLE m_hWaitFlag;// 取消时让还原线程的等待标志 [5/15/2008 By willing]
	HANDLE m_hExitFlag;// 是否退出工作线程 [5/7/2008 By willing]
	HANDLE m_hThreadHandle;// 线程句柄 [5/7/2008 By willing]
	DWORD m_dwEncryptThreadID;// 线程ID [5/7/2008 By willing]
};

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

#endif // !defined(AFX_DLGRECOVEPROGRESS_H__FD8836FC_F6BB_4D22_828A_A4306AF829F9__INCLUDED_)

⌨️ 快捷键说明

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