00001
00002
00003
00004
00005
00006 #include "stdafx.h"
00007 #include "FdmApp.h"
00008 #include "WPDS_Sheet.h"
00009
00010 #ifdef _DEBUG
00011 #define new DEBUG_NEW
00012 #undef THIS_FILE
00013 static char THIS_FILE[] = __FILE__;
00014 #endif
00015
00016 IMPLEMENT_DYNAMIC(CWPDS_Sheet, CPropertySheet)
00017
00018 CWPDS_Sheet::CWPDS_Sheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
00019 :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
00020 {
00021 }
00022
00023 CWPDS_Sheet::CWPDS_Sheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
00024 :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
00025 {
00026 }
00027
00028 CWPDS_Sheet::~CWPDS_Sheet()
00029 {
00030 }
00031
00032 BEGIN_MESSAGE_MAP(CWPDS_Sheet, CPropertySheet)
00033
00034
00035 END_MESSAGE_MAP()
00036
00037 void CWPDS_Sheet::Init(fsWPDSettings *wpds, BOOL bGeneralPage, fsWebPageDownloader* wpd, bool bUsedAsSetDefaults)
00038 {
00039 if (bGeneralPage)
00040 AddPage (&m_general);
00041
00042 m_general.m_wpds = m_webpages.m_wpds = m_files.m_wpds = m_images.m_wpds = wpds;
00043 m_general.m_wpd = wpd;
00044
00045 m_webpages.m_bUsedAsSetDefaults = bUsedAsSetDefaults;
00046
00047 AddPage (&m_webpages);
00048 AddPage (&m_images);
00049 AddPage (&m_files);
00050 }
00051
00052 BOOL CWPDS_Sheet::OnInitDialog()
00053 {
00054 CPropertySheet::OnInitDialog();
00055
00056 DWORD dw = GetWindowLong (m_hWnd, GWL_EXSTYLE);
00057 dw |= WS_EX_CONTEXTHELP;
00058 SetWindowLong (m_hWnd, GWL_EXSTYLE, dw);
00059
00060 return TRUE;
00061
00062 }