1 // SinglePropSheetDlg.cpp : implementation file
5 #include "TortoiseProc.h"
6 #include "SinglePropSheetDlg.h"
9 // CSinglePropSheetDlg dialog
10 using namespace TreePropSheet
;
12 IMPLEMENT_DYNAMIC(CSinglePropSheetDlg
, CTreePropSheet
)
14 CSinglePropSheetDlg::CSinglePropSheetDlg(const TCHAR
* szCaption
, ISettingsPropPage
* pThePropPage
, CWnd
* pParent
/*=NULL*/)
15 : CTreePropSheet(szCaption
,pParent
),// CSinglePropSheetDlg::IDD, pParent),
16 m_pThePropPage(pThePropPage
)
21 CSinglePropSheetDlg::~CSinglePropSheetDlg()
26 void CSinglePropSheetDlg::AddPropPages()
28 SetPageIcon(m_pThePropPage
, m_pThePropPage
->GetIconID());
29 AddPage(m_pThePropPage
);
32 void CSinglePropSheetDlg::RemovePropPages()
34 delete m_pThePropPage
;
37 void CSinglePropSheetDlg::DoDataExchange(CDataExchange
* pDX
)
39 CTreePropSheet::DoDataExchange(pDX
);
43 BEGIN_MESSAGE_MAP(CSinglePropSheetDlg
, CTreePropSheet
)
47 // CSinglePropSheetDlg message handlers
49 BOOL
CSinglePropSheetDlg::OnInitDialog()
51 BOOL bReturn
= CTreePropSheet::OnInitDialog();
54 // GetClientRect(&clientRect);
55 // clientRect.DeflateRect(10,10,10,10);
56 // m_pThePropPage->Create(m_pThePropPage->m_lpszTemplateName,this);
57 // m_pThePropPage->MoveWindow(clientRect);
60 CenterWindow(CWnd::FromHandle(hWndExplorer
));