www.pudn.com > agentnet.zip > LoginDlg.h
#if !defined(AFX_LOGINDLG_H__79E7FF1E_B5A6_4636_BACA_9046FF0EB16A__INCLUDED_)
#define AFX_LOGINDLG_H__79E7FF1E_B5A6_4636_BACA_9046FF0EB16A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LoginDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CLoginDlg dialog
class CToServerSocket;
class CMsg;
class CLoginDlg : public CDialog
{
// Construction
public:
struct stuSetup
{
CString strAgentCharPath;
CString strServerIpAddress;
CString strMailAccount;
CString strMailServer;
CString strMailPassword;
}m_stuSetup;
void InitSetup();
BOOL m_bPass;
void LogIn();
void SendMsg(CMsg* pMsg);
void ReceiveMsg();
void OnReceive();
BOOL ConnectSocket(LPCTSTR lpszAddress, UINT nPort);
CToServerSocket* m_pSocket;
//CSocketFile¶ÔÏó
CSocketFile* m_pFile;
//CArchive¶ÔÏó
CArchive* m_pArchiveIn;
CArchive* m_pArchiveOut;
CLoginDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CLoginDlg)
enum { IDD = IDD_DIALOG_LOGIN };
CString m_strUserName;
CString m_strUserPassword;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLoginDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CLoginDlg)
afx_msg void OnButtonLogin();
afx_msg void OnButtonProperty();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LOGINDLG_H__79E7FF1E_B5A6_4636_BACA_9046FF0EB16A__INCLUDED_)