home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / CHATTER.PAK / SETUPDLG.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.6 KB  |  60 lines

  1. // setupdlg.cpp : implementation file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 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 "chatter.h"
  15. #include "setupdlg.h"
  16.  
  17. #ifdef _DEBUG
  18. #undef THIS_FILE
  19. static char BASED_CODE THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSetupDlg dialog
  24.  
  25.  
  26. CSetupDlg::CSetupDlg(CWnd* pParent /*=NULL*/)
  27.     : CDialog(CSetupDlg::IDD, pParent)
  28. {
  29.     //{{AFX_DATA_INIT(CSetupDlg)
  30.     m_nChannel = 0;
  31.     m_strHandle = _T("");
  32.     m_strServer = _T("");
  33.     //}}AFX_DATA_INIT
  34. }
  35.  
  36.  
  37. void CSetupDlg::DoDataExchange(CDataExchange* pDX)
  38. {
  39.     CDialog::DoDataExchange(pDX);
  40.     //{{AFX_DATA_MAP(CSetupDlg)
  41.     DDX_Text(pDX, IDC_CHANNEL, m_nChannel);
  42.     DDV_MinMaxInt(pDX, m_nChannel, 0, 99);
  43.     DDX_Text(pDX, IDC_HANDLE, m_strHandle);
  44.     DDV_MaxChars(pDX, m_strHandle, 50);
  45.     DDX_Text(pDX, IDC_SERVER, m_strServer);
  46.     DDV_MaxChars(pDX, m_strServer, 255);
  47.     //}}AFX_DATA_MAP
  48. }
  49.  
  50.  
  51. BEGIN_MESSAGE_MAP(CSetupDlg, CDialog)
  52.     //{{AFX_MSG_MAP(CSetupDlg)
  53.         // NOTE: the ClassWizard will add message map macros here
  54.     //}}AFX_MSG_MAP
  55. END_MESSAGE_MAP()
  56.  
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CSetupDlg message handlers
  60.