2019-07-28 10:31:56 +08:00
|
|
|
|
#pragma once
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// CNetOption <20>Ի<EFBFBD><D4BB><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
class CNetOption : public CDialog
|
|
|
|
|
{
|
|
|
|
|
DECLARE_DYNAMIC(CNetOption)
|
|
|
|
|
|
|
|
|
|
public:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
CNetOption(CWnd* pParent = NULL); // <20><><EFBFBD><D7BC><EFBFBD>캯<EFBFBD><ECBAAF>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
virtual ~CNetOption();
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
enum { IDD = IDD_OPTION };
|
|
|
|
|
|
|
|
|
|
protected:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20><><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣӳ<CFA2>亯<EFBFBD><E4BAAF>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
virtual BOOL OnInitDialog();
|
|
|
|
|
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CNetOption& SetUserPasswd(const char* addr);
|
|
|
|
|
CNetOption& SetSmtpAddr(const char* addr, int port);
|
|
|
|
|
CNetOption& SetPop3Addr(const char* addr, int port);
|
|
|
|
|
CNetOption& SetUserAccount(const char* s);
|
|
|
|
|
CNetOption& SetRecipients(const char* s);
|
|
|
|
|
|
|
|
|
|
const CString& GetSmtpAddr() const
|
|
|
|
|
{
|
|
|
|
|
return m_smtpAddr;
|
|
|
|
|
}
|
|
|
|
|
int getSmtpPort() const
|
|
|
|
|
{
|
|
|
|
|
return m_smtpPort;
|
|
|
|
|
}
|
|
|
|
|
const CString& GetPop3Addr() const
|
|
|
|
|
{
|
|
|
|
|
return m_pop3Addr;
|
|
|
|
|
}
|
|
|
|
|
int getPop3Port() const
|
|
|
|
|
{
|
|
|
|
|
return m_pop3Port;
|
|
|
|
|
}
|
|
|
|
|
const CString& GetUserAccount() const
|
|
|
|
|
{
|
|
|
|
|
return m_userAccount;
|
|
|
|
|
}
|
|
|
|
|
const CString& GetUserPasswd() const
|
|
|
|
|
{
|
|
|
|
|
return m_userPasswd;
|
|
|
|
|
}
|
|
|
|
|
const CString& GetRecipients() const
|
|
|
|
|
{
|
|
|
|
|
return m_recipients;
|
|
|
|
|
}
|
|
|
|
|
//private:
|
|
|
|
|
CString m_smtpAddr;
|
|
|
|
|
int m_smtpPort;
|
|
|
|
|
CString m_pop3Addr;
|
|
|
|
|
int m_pop3Port;
|
|
|
|
|
CString m_userAccount;
|
|
|
|
|
CString m_userPasswd;
|
|
|
|
|
CString m_recipients;
|
|
|
|
|
public:
|
|
|
|
|
afx_msg void OnPaint();
|
|
|
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
|
|
|
afx_msg void OnEnKillfocusUserAccount();
|
|
|
|
|
afx_msg void OnEnKillfocusSmtpAddr();
|
|
|
|
|
afx_msg void OnEnKillfocusPop3Addr();
|
|
|
|
|
afx_msg void OnEnKillfocusUserPasswd();
|
|
|
|
|
afx_msg void OnEnKillfocusRecipients();
|
|
|
|
|
afx_msg void OnBnClickedCancel();
|
|
|
|
|
afx_msg void OnBnClickedOk();
|
|
|
|
|
};
|