home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / vrac / dlgcbr.zip / RATEDLG.CPP < prev    next >
C/C++ Source or Header  |  1994-06-30  |  2KB  |  61 lines

  1. /*****************************************************************************
  2.   RATEDLG.CPP
  3.  
  4.   Purpose:
  5.       Implements CRateDlg, which allows the user to specify how often to
  6.       update the main dialog display.
  7.  
  8.   Functions:
  9.     CRateDlg::CRateDlg()            -- constructor
  10.     CRateDlg::DoDataExchange()        -- dialog data exchange/validation  
  11.     CRateDlg::OnInitDialog()        -- initialize dialog
  12.  
  13.   Development Team:
  14.     Mary Kirtland
  15.             
  16.   Written by Microsoft Product Support Services, Premier ISV Support
  17.   Copyright (c) 1994 Microsoft Corporation. All rights reserved.
  18. \****************************************************************************/
  19.  
  20. #include "stdafx.h"
  21. #include "resource.h"
  22. #include "ratedlg.h"
  23.  
  24. #ifdef _DEBUG
  25.     #undef THIS_FILE
  26.     static char BASED_CODE THIS_FILE[] = __FILE__;
  27. #endif
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CRateDlg dialog
  31.  
  32. CRateDlg::CRateDlg(UINT iRate, CWnd* pParent /*=NULL*/)
  33.     : CDialog(CRateDlg::IDD, pParent)
  34. {
  35.     //{{AFX_DATA_INIT(CRateDlg)
  36.     //}}AFX_DATA_INIT
  37.     m_iRate = iRate;
  38. }
  39.  
  40. void CRateDlg::DoDataExchange(CDataExchange* pDX)
  41. {
  42.     CDialog::DoDataExchange(pDX);
  43.     //{{AFX_DATA_MAP(CRateDlg)
  44.     DDX_Text(pDX, IDC_INTERVAL, m_iRate); 
  45.     DDV_MinMaxUInt(pDX, m_iRate, 0, 3600);
  46.     //}}AFX_DATA_MAP
  47. }
  48.     
  49. BOOL CRateDlg::OnInitDialog()
  50. {
  51.     CDialog::OnInitDialog();
  52.     CenterWindow();
  53.     return TRUE;
  54. }    
  55.     
  56. BEGIN_MESSAGE_MAP(CRateDlg, CDialog)
  57.     //{{AFX_MSG_MAP(CRateDlg)
  58.     //}}AFX_MSG_MAP
  59. END_MESSAGE_MAP()
  60.  
  61.