home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example5 / ChatDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  1.9 KB  |  78 lines

  1. /* START_LICENSE_HEADER
  2.  
  3. Copyright (C) 2000 Martin Piper, original design and program code
  4. Copyright (C) 2001-2005 Replica Software
  5.  
  6. This program file is copyright (C) Replica Software and can only be used under license.
  7. For more information visit: http://www.replicanet.com/
  8. Or email: info@replicanet.com
  9.  
  10. END_LICENSE_HEADER */
  11. //{{AFX_INCLUDES()
  12. #include "richtext.h"
  13. //}}AFX_INCLUDES
  14. #if !defined(AFX_CHATDLG_H__E2E43112_EEF9_48CB_8FED_575AC0CFDFF0__INCLUDED_)
  15. #define AFX_CHATDLG_H__E2E43112_EEF9_48CB_8FED_575AC0CFDFF0__INCLUDED_
  16.  
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif // _MSC_VER > 1000
  20. // ChatDlg.h : header file
  21. //
  22.  
  23. #include <string>
  24. #include "RNXPSession/Inc/XPsession.h"
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CChatDlg dialog
  28.  
  29. class CChatDlg : public CDialog
  30. {
  31. // Construction
  32. public:
  33.     CChatDlg(CWnd* pParent = NULL);   // standard constructor
  34.  
  35.     char mName[64];
  36.  
  37. // Dialog Data
  38.     //{{AFX_DATA(CChatDlg)
  39.     enum { IDD = IDD_CHAT };
  40.     CListBox    mUsersList;
  41.     CEdit    mChatEdit;
  42.     CRichText    mChatWindow;
  43.     //}}AFX_DATA
  44.  
  45.  
  46. // Overrides
  47.     // ClassWizard generated virtual function overrides
  48.     //{{AFX_VIRTUAL(CChatDlg)
  49.     protected:
  50.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  51.     //}}AFX_VIRTUAL
  52.  
  53. // Implementation
  54. protected:
  55.  
  56.     // Generated message map functions
  57.     //{{AFX_MSG(CChatDlg)
  58.     virtual BOOL OnInitDialog();
  59.     afx_msg void OnTimer(UINT nIDEvent);
  60.     afx_msg void OnWhisper();
  61.     afx_msg void OnChangeEdit1();
  62.     afx_msg void OnButton1();
  63.     //}}AFX_MSG
  64.     DECLARE_MESSAGE_MAP()
  65.  
  66. private:
  67.     RNReplicaNet::XPSession *mXPSession;
  68.     std::string mChatText;
  69.     bool mIsStable;
  70.     bool mIsMaster;
  71.     bool mError;
  72. };
  73.  
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76.  
  77. #endif // !defined(AFX_CHATDLG_H__E2E43112_EEF9_48CB_8FED_575AC0CFDFF0__INCLUDED_)
  78.