00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_DOWNLOADPROPERTYSHEET_H__62605145_E319_476F_B224_92B1E5315E79__INCLUDED_) 00007 #define AFX_DOWNLOADPROPERTYSHEET_H__62605145_E319_476F_B224_92B1E5315E79__INCLUDED_ 00008 00009 #include "DownloadProperties_ProxyPage.h" 00010 #include "DownloadProperties_ProtocolPage.h" 00011 #if _MSC_VER > 1000 00012 #pragma once 00013 #endif 00014 00015 #include "list.h" 00016 #include "DownloadProperties_ConnectionPage.h" 00017 #include "DownloadProperties_GeneralPage.h" 00018 #include "DownloadProperties_MiscPage.h" 00019 #include "DownloadProperties_MirrorsPage.h" 00020 #include "DownloadProperties_IntegrityPage.h" 00021 00022 #define DPS_SHP_GENERAL 1 00023 #define DPS_SHP_MIRRORS 2 00024 #define DPS_SHP_CONNECTION 4 00025 #define DPS_SHP_PROTOCOL 8 00026 #define DPS_SHP_PROXY 16 00027 #define DPS_SHP_MISC 32 00028 #define DPS_SHP_INTEGRITY 64 00029 00030 #define DPS_SHP_NETWORKPAGES (DPS_SHP_PROTOCOL|DPS_SHP_PROXY|DPS_SHP_CONNECTION) 00031 #define DPS_SHP_NOGENERALNOMIRR (DPS_SHP_NETWORKPAGES|DPS_SHP_MISC|DPS_SHP_INTEGRITY) 00032 #define DPS_SHP_NOGENERAL (DPS_SHP_MIRRORS|DPS_SHP_NOGENERALNOMIRR|DPS_SHP_INTEGRITY) 00033 #define DPS_SHP_ALL (DPS_SHP_GENERAL|DPS_SHP_NOGENERAL) 00034 00035 class CDownloadPropertiesSheet : public CPropertySheet 00036 { 00037 DECLARE_DYNAMIC(CDownloadPropertiesSheet) 00038 00039 public: 00040 CDownloadPropertiesSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0); 00041 CDownloadPropertiesSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0); 00042 00043 public: 00044 00045 public: 00046 //{{AFX_VIRTUAL(CDownloadPropertySheet) 00047 //}}AFX_VIRTUAL 00048 00049 public: 00050 BOOL IsNeedProcessDownloads (); 00051 BOOL IsNeedUpdateTasks(); 00052 00053 void Init (DLDS_LIST *pvDlds, DWORD dwPages); 00054 virtual ~CDownloadPropertiesSheet(); 00055 00056 protected: 00057 CDownloadProperties_IntegrityPage m_integrity; 00058 CDownloadProperties_MirrorsPage m_mirrors; 00059 00060 RECT m_rctPage; 00061 CFont m_fntPage; 00062 void BuildPropPageArray(); 00063 00064 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00065 virtual BOOL OnInitDialog(); 00066 00067 CDownloadProperties_MiscPage m_misc; 00068 CDownloadProperties_GeneralPage m_general; 00069 CDownloadProperties_ConnectionPage m_connection; 00070 CDownloadProperties_ProtocolPage m_protocol; 00071 CDownloadProperties_ProxyPage m_proxy; 00072 00073 //{{AFX_MSG(CDownloadPropertySheet) 00074 //}}AFX_MSG 00075 DECLARE_MESSAGE_MAP() 00076 }; 00077 00078 //{{AFX_INSERT_LOCATION}//}} 00079 00080 #endif
1.5.6