testBTDoc.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- // testBTDoc.h : interface of the CTestBTDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TESTBTDOC_H__0B48ECA8_37FB_43EA_977E_B1AA373B94D7__INCLUDED_)
- #define AFX_TESTBTDOC_H__0B48ECA8_37FB_43EA_977E_B1AA373B94D7__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CFilesListCtrl;
- class CCategoryBarWnd;
- class CTestBTDoc : public CDocument
- {
- protected: // create from serialization only
- CTestBTDoc();
- DECLARE_DYNCREATE(CTestBTDoc)
- // Attributes
- public:
- CFilesListCtrl& GetFileListCtrl() const;
- CCategoryBarWnd& GetCategoryBarWnd() const;
- void MakeTorrent(CString strFilePath);
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTestBTDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CTestBTDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CTestBTDoc)
- afx_msg void OnMenuitemMakeMetafile();
- //}}AFX_MSG
- afx_msg void OnFileOpen();
- afx_msg void OnMenuitemFindFile();
- afx_msg void OnMenuitemFindNext();
- afx_msg void OnMenuitemSelectAll();
- afx_msg void OnFileNewDatabase();
- afx_msg void OnFileSaveAsDatabase();
- afx_msg void OnMenuitemOpenDatabase();
- afx_msg void OnFileSaveDatabase();
- afx_msg void OnUpdateMenuitem(CCmdUI* pCmdUI);
- afx_msg void OnCommandMenuitem(UINT iID);
- DECLARE_MESSAGE_MAP()
- private:
- bool SaveAsDatabase(bool bExit = false);
- bool PromptToSaveDatabase(bool bExit = false);
- bool m_bInitiated;
- int m_iOpendFileCount;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TESTBTDOC_H__0B48ECA8_37FB_43EA_977E_B1AA373B94D7__INCLUDED_)