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