home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / chatsrvr / dialogs.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  54 lines

  1. // dialogs.cpp : implementation file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "chatsrvr.h"
  15. #include "dialogs.h"
  16.  
  17. #ifdef _DEBUG
  18. #undef THIS_FILE
  19. static char BASED_CODE THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CDiscussionDlg dialog
  24.  
  25.  
  26. CDiscussionDlg::CDiscussionDlg(CWnd* pParent /*=NULL*/)
  27.     : CDialog(CDiscussionDlg::IDD, pParent)
  28. {
  29.     //{{AFX_DATA_INIT(CDiscussionDlg)
  30.     m_nPort = 0;
  31.     //}}AFX_DATA_INIT
  32. }
  33.  
  34.  
  35. void CDiscussionDlg::DoDataExchange(CDataExchange* pDX)
  36. {
  37.     CDialog::DoDataExchange(pDX);
  38.     //{{AFX_DATA_MAP(CDiscussionDlg)
  39.     DDX_Text(pDX, IDC_EDIT1, m_nPort);
  40.     DDV_MinMaxInt(pDX, m_nPort, 0, 99);
  41.     //}}AFX_DATA_MAP
  42. }
  43.  
  44.  
  45. BEGIN_MESSAGE_MAP(CDiscussionDlg, CDialog)
  46.     //{{AFX_MSG_MAP(CDiscussionDlg)
  47.         // NOTE: the ClassWizard will add message map macros here
  48.     //}}AFX_MSG_MAP
  49. END_MESSAGE_MAP()
  50.  
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CDiscussionDlg message handlers
  54.