Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.4 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1996 - 1999
  3. //
  4. // File: RefRate.cpp
  5. //
  6. // History:
  7. // 05/24/96 Michael Clark Created.
  8. //
  9. // Code dealing with refresh rate
  10. //============================================================================
  11. //
  12. #include "stdafx.h"
  13. #include "dialog.h"
  14. #include "RefRate.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CRefRateDlg dialog
  22. CRefRateDlg::CRefRateDlg(CWnd* pParent /*=NULL*/)
  23. : CBaseDialog(CRefRateDlg::IDD, pParent)
  24. {
  25. //{{AFX_DATA_INIT(CRefRateDlg)
  26. m_cRefRate = 0;
  27. //}}AFX_DATA_INIT
  28. }
  29. void CRefRateDlg::DoDataExchange(CDataExchange* pDX)
  30. {
  31. CDialog::DoDataExchange(pDX);
  32. //{{AFX_DATA_MAP(CRefRateDlg)
  33. DDX_Text(pDX, IDC_EDIT_REFRESHRATE, m_cRefRate);
  34. DDV_MinMaxUInt(pDX, m_cRefRate, 10, 999);
  35. //}}AFX_DATA_MAP
  36. }
  37. BEGIN_MESSAGE_MAP(CRefRateDlg, CBaseDialog)
  38. //{{AFX_MSG_MAP(CRefRateDlg)
  39. // NOTE: the ClassWizard will add message map macros here
  40. //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CRefRateDlg message handlers
  44. // maps control id's to help contexts
  45. DWORD CRefRateDlg::m_dwHelpMap[] =
  46. {
  47. // IDC_REFRESHRATE, HIDC_REFRESHRATE,
  48. 0,0
  49. };