OSDN Git Service

Remove IBugTraqProvider intermediate files from repository
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / ResetDlg.cpp
1 // ResetDlg.cpp : implementation file\r
2 //\r
3 \r
4 #include "stdafx.h"\r
5 #include "TortoiseProc.h"\r
6 #include "ResetDlg.h"\r
7 \r
8 \r
9 // CResetDlg dialog\r
10 \r
11 IMPLEMENT_DYNAMIC(CResetDlg, CResizableStandAloneDialog)\r
12 \r
13 CResetDlg::CResetDlg(CWnd* pParent /*=NULL*/)\r
14         : CResizableStandAloneDialog(CResetDlg::IDD, pParent)\r
15     , m_ResetType(1)\r
16 {\r
17 \r
18 }\r
19 \r
20 CResetDlg::~CResetDlg()\r
21 {\r
22 }\r
23 \r
24 void CResetDlg::DoDataExchange(CDataExchange* pDX)\r
25 {\r
26         CDialog::DoDataExchange(pDX);\r
27 }\r
28 \r
29 \r
30 BEGIN_MESSAGE_MAP(CResetDlg, CResizableStandAloneDialog)\r
31 END_MESSAGE_MAP()\r
32 \r
33 \r
34 // CResetDlg message handlers\r
35 BOOL CResetDlg::OnInitDialog()\r
36 {\r
37         CResizableStandAloneDialog::OnInitDialog();\r
38 \r
39         AddAnchor(IDC_RESET_BRANCH_NAME, TOP_LEFT, TOP_RIGHT);\r
40         AddAnchor(IDC_GROUP_RESET_TYPE, TOP_LEFT,TOP_RIGHT);\r
41 \r
42         AddAnchor(IDOK,BOTTOM_RIGHT);\r
43         AddAnchor(IDCANCEL,BOTTOM_RIGHT);\r
44         \r
45         this->CheckRadioButton(IDC_RADIO_RESET_SOFT,IDC_RADIO_RESET_HARD,IDC_RADIO_RESET_SOFT+m_ResetType);\r
46 \r
47         return TRUE;\r
48 }\r
49 \r
50 void CResetDlg::OnOK()\r
51 {\r
52         m_ResetType=this->GetCheckedRadioButton(IDC_RADIO_RESET_SOFT,IDC_RADIO_RESET_HARD)-IDC_RADIO_RESET_SOFT;\r
53         return CResizableStandAloneDialog::OnOK();\r
54 }