DlgNewDownload.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:3k
源码类别:
P2P编程
开发平台:
Visual C++
- #if !defined(AFX_DLGNEWDOWNLOAD_H__6508502C_3476_4E01_8428_39473C2201E7__INCLUDED_)
- #define AFX_DLGNEWDOWNLOAD_H__6508502C_3476_4E01_8428_39473C2201E7__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DlgNewDownload.h : header file
- //
- #include "CategoryBarWnd.h"
- #include "CategoryCombobox.h"
- #include "HistoryComboEx.h"
- #include "SubFilesWnd.h"
- #include "SplitterBar.h"
- #include "ButtonEx.h"
- #include "ExpandingDialog.h"
- class CCategoryBarWnd;
- class CTreeCursor;
- class CFileTorrent;
- /////////////////////////////////////////////////////////////////////////////
- // CDlgNewDownload dialog
- class CDlgNewDownload : public CExpandingDialog
- {
- // Construction
- public:
- CDlgNewDownload(CImageList* pImageList, CFileTorrent* pfiletorrent,
- CCategoryBarWnd* pCategoryBarWnd, bool bNewOrProperty, CFileDBItem* pFileDBItem = 0, long lDirectoryID = 0,
- string strDirectorySave = string(), CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CDlgNewDownload)
- enum { IDD = IDD_DIALOG_NEW_DOWNLOAD };
- CButtonEx m_btnMore;
- CButtonEx m_btnDownloadLater;
- CButtonEx m_btnBrowseDir;
- CButtonEx m_btnCategoryNew;
- CButtonEx m_btnSaveAsDef;
- CButtonEx m_btnCancel;
- CButtonEx m_btnOK;
- CSubFilesWnd m_treeSubFiles;
- CHistoryComboEx m_cbDirectorySave;
- CCategoryCombobox m_cbCategory;
- CString m_strRename;
- CString m_strInfohash;
- CString m_strUrl;
- CString m_strComment;
- CString m_strTorrentFileName;
- int m_iStartMode;
- //}}AFX_DATA
- // out
- HTREEITEM m_ItemSel;
- string m_strDirectorySave;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDlgNewDownload)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CDlgNewDownload)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- afx_msg void OnSelchangeComboCategory();
- afx_msg void OnButtonCategoryNew();
- afx_msg void OnButtonDirectorySelect();
- afx_msg void OnButtonSaveAsDefault();
- afx_msg void OnDestroy();
- afx_msg void OnRadioDownloadManualy();
- afx_msg void OnRadioDownloadImmediately();
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- //}}AFX_MSG
- void OnButtonDownloadLater();
- void OnSplitterMoved(long lParam, long wParam);
- DECLARE_MESSAGE_MAP()
- private:
- bool ApplyData();
- void SetCheck(UINT idBtn);
- void LoadState();
- void SaveState();
- void SaveStateWhenDestory();
- static const CString m_strSection;
- void LoadTorrent();
- void Load();
- void Copy(CTreeCursor& curItem, int iIndent = 1);
- CCategoryBarWnd::CCategoryDBItem* GetDBItemData(int icbSel);
- // in
- CImageList* m_pImageList;
- bool m_bNewOrProperty;
- CFileTorrent* m_pfiletorrent;
- CCategoryBarWnd* m_pCategoryBarWnd;
- long m_lDirectoryID;
- CFileDBItem* m_pFileDBItem;
- static const string m_strSaveAsSection;
- static const string m_strSaveAsCategoryKey;
- static const string m_strSaveAsDirectoryKey;
- bool m_bNoNotification;
- long m_lSubFilesWndWidth;
- CSplitterBar m_wndHSplitterBar;
- CImageList m_ctlImage;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DLGNEWDOWNLOAD_H__6508502C_3476_4E01_8428_39473C2201E7__INCLUDED_)