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

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   CommSettingDlg.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Interface of the Communication Setting 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_COMMSETTINGDLG_H__6756D661_0D98_11D2_91DB_444553540000__INCLUDED_)
  21. #define AFX_COMMSETTINGDLG_H__6756D661_0D98_11D2_91DB_444553540000__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. #include <AniButton.h>
  26. // CommSettingDlg.h : header file
  27. //
  28. //
  29. //  Callback function for DPlay to display connection available:
  30. //
  31. BOOL FAR PASCAL EnumConnections(
  32.     LPGUID lpSPGuid, LPTSTR lpszSPName, DWORD dwMajorVersion,
  33.     DWORD dwMinorVersion, LPVOID lpContext);
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CCommSettingDlg dialog
  36. class CCommSettingDlg : public CDialog
  37. {
  38. // Construction
  39. public:
  40.     CCommSettingDlg();
  41. // Dialog Data
  42.     //{{AFX_DATA(CCommSettingDlg)
  43.     enum { IDD = IDD_COMM_SETTING };
  44.     CAniButton  m_ctrOK;
  45.     CAniButton  m_ctrCancel;
  46.     CListBox    m_ConnectionsList;
  47.     CString     m_strPlayerName;
  48.     //}}AFX_DATA
  49. // Overrides
  50.     // ClassWizard generated virtual function overrides
  51.     //{{AFX_VIRTUAL(CCommSettingDlg)
  52.     protected:
  53.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  54.     //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57.     // Generated message map functions
  58.     //{{AFX_MSG(CCommSettingDlg)
  59.     virtual void OnOK();
  60.     virtual BOOL OnInitDialog();
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. private:
  64.     void SelectStoredGUID();
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_COMMSETTINGDLG_H__6756D661_0D98_11D2_91DB_444553540000__INCLUDED_)