1 // ResetDlg.cpp : implementation file
5 #include "TortoiseProc.h"
11 IMPLEMENT_DYNAMIC(CResetDlg
, CResizableStandAloneDialog
)
13 CResetDlg::CResetDlg(CWnd
* pParent
/*=NULL*/)
14 : CResizableStandAloneDialog(CResetDlg::IDD
, pParent
)
20 CResetDlg::~CResetDlg()
24 void CResetDlg::DoDataExchange(CDataExchange
* pDX
)
26 CDialog::DoDataExchange(pDX
);
30 BEGIN_MESSAGE_MAP(CResetDlg
, CResizableStandAloneDialog
)
34 // CResetDlg message handlers
35 BOOL
CResetDlg::OnInitDialog()
37 CResizableStandAloneDialog::OnInitDialog();
39 AddAnchor(IDC_RESET_BRANCH_NAME
, TOP_LEFT
, TOP_RIGHT
);
40 AddAnchor(IDC_GROUP_RESET_TYPE
, TOP_LEFT
,TOP_RIGHT
);
42 AddAnchor(IDOK
,BOTTOM_RIGHT
);
43 AddAnchor(IDCANCEL
,BOTTOM_RIGHT
);
45 this->CheckRadioButton(IDC_RADIO_RESET_SOFT
,IDC_RADIO_RESET_HARD
,IDC_RADIO_RESET_SOFT
+m_ResetType
);
50 void CResetDlg::OnOK()
52 m_ResetType
=this->GetCheckedRadioButton(IDC_RADIO_RESET_SOFT
,IDC_RADIO_RESET_HARD
)-IDC_RADIO_RESET_SOFT
;
53 return CResizableStandAloneDialog::OnOK();