OSDN Git Service

Add SendMail Dialog
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / SendMailDlg.cpp
1 // SendMailDlg.cpp : implementation file\r
2 //\r
3 \r
4 #include "stdafx.h"\r
5 #include "TortoiseProc.h"\r
6 #include "SendMailDlg.h"\r
7 \r
8 \r
9 // CSendMailDlg dialog\r
10 \r
11 IMPLEMENT_DYNAMIC(CSendMailDlg, CResizableStandAloneDialog)\r
12 \r
13 CSendMailDlg::CSendMailDlg(CWnd* pParent /*=NULL*/)\r
14         : CResizableStandAloneDialog(CSendMailDlg::IDD, pParent)\r
15         , m_To(_T(""))\r
16         , m_CC(_T(""))\r
17         , m_Subject(_T(""))\r
18         , m_bAttachment(FALSE)\r
19         , m_bBranch(FALSE)\r
20 {\r
21 \r
22 }\r
23 \r
24 CSendMailDlg::~CSendMailDlg()\r
25 {\r
26 }\r
27 \r
28 void CSendMailDlg::DoDataExchange(CDataExchange* pDX)\r
29 {\r
30         CDialog::DoDataExchange(pDX);\r
31         DDX_Text(pDX, IDC_SENDMAIL_TO, m_To);\r
32         DDX_Text(pDX, IDC_SENDMAIL_CC, m_CC);\r
33         DDX_Text(pDX, IDC_SENDMAIL_SUBJECT, m_Subject);\r
34         DDX_Check(pDX, IDC_SENDMAIL_ATTACHMENT, m_bAttachment);\r
35         DDX_Check(pDX, IDC_SENDMAIL_COMBINE, m_bBranch);\r
36         DDX_Control(pDX, IDC_SENDMAIL_PATCHS, m_ctrlList);\r
37         DDX_Control(pDX,IDC_SENDMAIL_SETUP, this->m_SmtpSetup);\r
38 }\r
39 \r
40 \r
41 BEGIN_MESSAGE_MAP(CSendMailDlg, CResizableStandAloneDialog)\r
42         ON_BN_CLICKED(IDC_SENDMAIL_COMBINE, &CSendMailDlg::OnBnClickedSendmailCombine)\r
43 END_MESSAGE_MAP()\r
44 \r
45 \r
46 // CSendMailDlg message handlers\r
47 \r
48 BOOL CSendMailDlg::OnInitDialog()\r
49 {\r
50         CResizableStandAloneDialog::OnInitDialog();\r
51 \r
52         AddAnchor(IDC_SENDMAIL_GROUP,TOP_LEFT,TOP_RIGHT);\r
53         AddAnchor(IDC_SENDMAIL_TO,TOP_LEFT,TOP_RIGHT);\r
54         AddAnchor(IDC_SENDMAIL_CC,TOP_LEFT,TOP_RIGHT);\r
55         AddAnchor(IDC_SENDMAIL_SUBJECT,TOP_LEFT,TOP_RIGHT);\r
56         AddAnchor(IDC_SENDMAIL_SETUP,TOP_RIGHT);\r
57 \r
58         AddAnchor(IDC_SENDMAIL_PATCHS,TOP_LEFT,BOTTOM_RIGHT);\r
59         AddAnchor(IDOK,BOTTOM_RIGHT);\r
60         AddAnchor(IDCANCEL,BOTTOM_RIGHT);\r
61 \r
62         this->AddOthersToAnchor();\r
63         EnableSaveRestore(_T("SendMailDlg"));\r
64         return TRUE;\r
65 }\r
66 void CSendMailDlg::OnBnClickedSendmailCombine()\r
67 {\r
68         // TODO: Add your control notification handler code here\r
69 }\r