ChatDlg.h
上传用户:royluo
上传日期:2007-01-05
资源大小:1584k
文件大小:3k
源码类别:

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   ChatDlg.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Interface of the chat dialog.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #if !defined(AFX_CHATDLG_H__A61D98E1_4FB8_11D2_AE86_444553540000__INCLUDED_)
  21. #define AFX_CHATDLG_H__A61D98E1_4FB8_11D2_AE86_444553540000__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. // ChatDlg.h : header file
  26. //
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CChatDlg dialog
  29. class CChatDlg : public CDialog
  30. {
  31. // Construction
  32. public:
  33.     CChatDlg(CWnd* pParent = NULL);   // standard constructor
  34.     static void Open (CWnd *pParent);
  35.     static void Close();
  36.     void OnCancel ();
  37.     void AddMessage(DPID idFrom, DWORD dwTankID, LPCSTR szMsg);
  38.     void PostNcDestroy( );
  39. // Dialog Data
  40.     //{{AFX_DATA(CChatDlg)
  41.     enum { IDD = IDD_CHAT_DIALOG };
  42.     CListBox    m_List;
  43.     CEdit   m_Edit;
  44.     //}}AFX_DATA
  45. // Overrides
  46.     // ClassWizard generated virtual function overrides
  47.     //{{AFX_VIRTUAL(CChatDlg)
  48.     protected:
  49.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  50.     //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53.     // Generated message map functions
  54.     //{{AFX_MSG(CChatDlg)
  55.     virtual BOOL OnInitDialog();
  56.     afx_msg void OnClose();
  57.     //afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. private:
  61.     // methods:
  62.     static void Clean ();
  63.     void OnOK();
  64.     // members:
  65.     CCommManager   &m_gCommManager;
  66.     static CChatDlg *m_pDlg;
  67. };
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_CHATDLG_H__A61D98E1_4FB8_11D2_AE86_444553540000__INCLUDED_)