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

📄 webctl.h

📁 web应用控件,主要是实现的web开发中文件的加密和解密.该控件b/s架构的应用系统 中有比较好的用途
💻 H
字号:
#if !defined(AFX_WEBCTL_H__9005778F_E045_43CA_914D_87A627737019__INCLUDED_)
#define AFX_WEBCTL_H__9005778F_E045_43CA_914D_87A627737019__INCLUDED_

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

// WebCtl.h : Declaration of the CWebCtrl ActiveX Control class.

/////////////////////////////////////////////////////////////////////////////
// CWebCtrl : See WebCtl.cpp for implementation.

class CWebCtrl : public COleControl
{
	DECLARE_DYNCREATE(CWebCtrl)

// Constructor
public:
	CWebCtrl();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWebCtrl)
	public:
	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
	virtual void DoPropExchange(CPropExchange* pPX);
	virtual void OnResetState();
	virtual DWORD GetControlFlags();
	//}}AFX_VIRTUAL

// Implementation
protected:
	~CWebCtrl();

	DECLARE_OLECREATE_EX(CWebCtrl)    // Class factory and guid
	DECLARE_OLETYPELIB(CWebCtrl)      // GetTypeInfo
	DECLARE_PROPPAGEIDS(CWebCtrl)     // Property page IDs
	DECLARE_OLECTLTYPE(CWebCtrl)		// Type name and misc status

// Message maps
	//{{AFX_MSG(CWebCtrl)
		// NOTE - ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

// Dispatch maps
	//{{AFX_DISPATCH(CWebCtrl)
	afx_msg BOOL CreateKSDirectory(LPCTSTR ksDir);
	afx_msg BOOL CreateVirtualDirection(LPCTSTR lpszVirtualDirName, LPCTSTR lpszDiskPath);
	afx_msg BOOL DeleteKSDirectory(LPCTSTR ksDir);
	afx_msg BOOL UpFile(LPCTSTR ipAddress, LPCTSTR localFilePath, LPCTSTR remoteFilePath);
	afx_msg BOOL DownFile(LPCTSTR ipAddress, LPCTSTR remoteFilePath, LPCTSTR localFilePath);
	afx_msg void OpenFrontPage(LPCTSTR filePath);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()

// Event maps
	//{{AFX_EVENT(CWebCtrl)
	//}}AFX_EVENT
	DECLARE_EVENT_MAP()

// Dispatch and event IDs
public:
	__int64 epass();
	__int64 m_password;
	CString m_pass;
	enum {
	//{{AFX_DISP_ID(CWebCtrl)
	dispidCreateKSDirectory = 1L,
	dispidCreateVirtualDirection = 2L,
	dispidDeleteKSDirectory = 3L,
	dispidUpFile = 4L,
	dispidDownFile = 5L,
	dispidOpenFrontPage = 6L,
	//}}AFX_DISP_ID
	};
private:
	BOOL ecfile(LPCTSTR fpath);
	BOOL dcfile(LPCTSTR fpath);
	CString GetFrontPagePath();
	void WriteLog(CString strResult,CString logPath);
};

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

#endif // !defined(AFX_WEBCTL_H__9005778F_E045_43CA_914D_87A627737019__INCLUDED)

⌨️ 快捷键说明

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