SendDlg.h
上传用户:hysujiao87
上传日期:2007-12-02
资源大小:156k
文件大小:2k
- #if !defined(AFX_SENDDLG_H__D15B5B23_9035_11D6_9C0E_0080C8F72DA3__INCLUDED_)
- #define AFX_SENDDLG_H__D15B5B23_9035_11D6_9C0E_0080C8F72DA3__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // SendDlg.h : header file
- //
- #include "PeerComm.h"
- /////////////////////////////////////////////////////////////////////////////
- // CSendDlg dialog
- #define WM_SENDDLG_CLOSED WM_USER + 105
- class CSendDlg : public CDialog
- {
- // Construction
- public:
- CSendDlg(CWnd *mainWnd, CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CSendDlg)
- enum { IDD = IDD_SENDMSG };
- CString _sendMsg;
- CString _message;
- //}}AFX_DATA
- CString _serverIP;
- CString _userID;
- CString _userName;
- CString _friendName;
- CString _friendID;
- sockaddr_in _friendAddr;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSendDlg)
- public:
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- CPeerComm _comm;
- CWnd *_mainWnd;
- // Generated message map functions
- //{{AFX_MSG(CSendDlg)
- afx_msg void OnSendBtn();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnInitDialog();
- void insertMessage(CString userID, CString message);
- afx_msg void OnClose();
- protected:
- virtual void OnCancel();
- virtual void OnOK();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SENDDLG_H__D15B5B23_9035_11D6_9C0E_0080C8F72DA3__INCLUDED_)