home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / mtrecalc / speeddlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.4 KB  |  52 lines

  1. // speedlg.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 "mtrecalc.h"
  15. #include "speeddlg.h"
  16.  
  17. #ifdef _DEBUG
  18. #undef THIS_FILE
  19. static char BASED_CODE THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSpeedDlg dialog
  24.  
  25.  
  26. CSpeedDlg::CSpeedDlg(CWnd* pParent /*=NULL*/)
  27.     : CDialog(CSpeedDlg::IDD, pParent)
  28. {
  29.     //{{AFX_DATA_INIT(CSpeedDlg)
  30.     m_nRecalcSpeedSeconds = 0;
  31.     //}}AFX_DATA_INIT
  32. }
  33.  
  34. void CSpeedDlg::DoDataExchange(CDataExchange* pDX)
  35. {
  36.     CDialog::DoDataExchange(pDX);
  37.     //{{AFX_DATA_MAP(CSpeedDlg)
  38.     DDX_Text(pDX, IDC_SPEED, m_nRecalcSpeedSeconds);
  39.     DDV_MinMaxInt(pDX, m_nRecalcSpeedSeconds, 1, 20);
  40.     //}}AFX_DATA_MAP
  41. }
  42.  
  43. BEGIN_MESSAGE_MAP(CSpeedDlg, CDialog)
  44.     //{{AFX_MSG_MAP(CSpeedDlg)
  45.         // NOTE: the ClassWizard will add message map macros here
  46.     //}}AFX_MSG_MAP
  47. END_MESSAGE_MAP()
  48.  
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CSpeedDlg message handlers
  52.