acl/app/net_tools/NetOption.h

79 lines
1.6 KiB
C
Raw Normal View History

#pragma once
2014-11-19 00:25:21 +08:00
// CNetOption <20>Ի<EFBFBD><D4BB><EFBFBD>
2014-11-19 00:25:21 +08:00
class CNetOption : public CDialog
{
DECLARE_DYNAMIC(CNetOption)
public:
CNetOption(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
2014-11-19 00:25:21 +08:00
virtual ~CNetOption();
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2014-11-19 00:25:21 +08:00
enum { IDD = IDD_OPTION };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
2014-11-19 00:25:21 +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();
};