Update diff del rename ignore document.
[TortoiseGit.git] / src / TortoiseProc / SinglePropSheetDlg.cpp
blobc33427a1ba4a576d70daad794a3a71dd9a0d1e19
1 // SinglePropSheetDlg.cpp : implementation file
2 //
4 #include "stdafx.h"
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)
18 AddPropPages();
21 CSinglePropSheetDlg::~CSinglePropSheetDlg()
23 RemovePropPages();
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)
44 END_MESSAGE_MAP()
47 // CSinglePropSheetDlg message handlers
49 BOOL CSinglePropSheetDlg::OnInitDialog()
51 BOOL bReturn = CTreePropSheet::OnInitDialog();
53 // CRect clientRect;
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));
62 return bReturn;