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

📄 testdownview.h

📁 模拟迅雷的下载工具软件
💻 H
字号:
// TestDownView.h : interface of the CTestDownView class
//作者:孟庆远
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TESTDOWNVIEW_H__72E264AD_43C8_11D9_95EE_00E04CB27B6F__INCLUDED_)
#define AFX_TESTDOWNVIEW_H__72E264AD_43C8_11D9_95EE_00E04CB27B6F__INCLUDED_

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


#include "ListNew.h"

#define IDC_LISTNEW 104

#define WM_LEODOWNINFO WM_USER+109
#define WM_DOWNSTARTBREAK WM_USER+111
#define WM_DOWNSTOPBREAK  WM_USER+112
#define WM_DOWNALLSTART   WM_USER+113
#define WM_DOWNALLSTOP    WM_USER+114
#define WM_DOWNDELA        WM_USER+115

typedef struct tagDOWN_STARTBREAK{
	CString strFilePath;        //File Path Name
	CString strLocationUrl;         //Net Down File Url
	CString strComment;         //Url Comment 
	CString strRegSubPath;      //Registry Open Path
	int     nParentNum;
	int     nBreakRcv;
}DOWN_STARTBREAK;

typedef struct tagDOWN_STOPBREAK{
	int nPID;
}DOWN_STOPBREAK;


#include "LRegistry.h"

class CTestDownDoc;
class CTestDownView : public CView
{
protected: // create from serialization only
	CTestDownView();
	DECLARE_DYNCREATE(CTestDownView)

// Attributes
public:
	CTestDownDoc* GetDocument();

// Operations
public:
	CListNew m_ListNew;    
	//CListNew *am_ListNew;    
	int m_nItem;           //Current Row
	int m_nSubItem;        //Current Col
	CLRegistry   v_DownRegistry; //LeoStudio\BLeo2004\DownLoad
	CWnd *m_pFrameWnd;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestDownView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CTestDownView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTestDownView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDownStart();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDownStop();
	afx_msg void OnDownAgain();
	//}}AFX_MSG
	afx_msg void OnListInfo(WPARAM wParam,LPARAM lParam);
	afx_msg void OnLeoDownInfo(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in TestDownView.cpp
inline CTestDownDoc* CTestDownView::GetDocument()
   { return (CTestDownDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_TESTDOWNVIEW_H__72E264AD_43C8_11D9_95EE_00E04CB27B6F__INCLUDED_)

⌨️ 快捷键说明

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