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

📄 dlgencporgress.h

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

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

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

// Dialog Data
	//{{AFX_DATA(CDlgEncPorgress)
	enum { IDD = IDD_DIALOG_ENC_PORGRESS };

	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgEncPorgress)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	DWORD Run();
	void SetDlgTitle(CString str);
	static DWORD WINAPI Encrypt(LPVOID lparam);// 显示加密的主线程 [5/7/2008 By willing]
	void SetMsg(CString strMsg,int nColorIndex);// 设置要显示的信息 [6/1/2007 by willing]
	void ShowStaticMsg(CString strMsg);// 在Static控件上显示消息 [5/8/2008 By willing]
	int Stop();// 停止加密线程 [5/14/2008 By willing]
	int WriteBuffer(CFile &m_File,char *ptrBuffer,DWORD dwLen);
	int WriteEncFileHead(CFile &encFile,const CString strXML);
	CString CreateEncFileHeadXml(CSelectFile SelectFile);
	
	afx_msg LRESULT SetProgress(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT SetCurPos(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT ShowEncMsg(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT AutoExit(WPARAM wParam,LPARAM lParam);
public:
	
	CString m_strPwd;// 用户输入的密码 [5/7/2008 By willing]
	int m_nEncSuanFa;	// 加密算法类型 [5/7/2008 By willing]
	DWORD m_dwEncType;// 加密类型 [5/7/2008 By willing]
protected:
	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]
	CProgressCtrl	m_ProgressCtrl;
	CXListBox	m_listbox;
};

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

#endif // !defined(AFX_DLGENCPORGRESS_H__3F98D7EB_28EF_4010_9924_4C405726F9AA__INCLUDED_)

⌨️ 快捷键说明

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