Leaked source code of windows server 2003
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.

84 lines
4.6 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. // Do not include this file directly (included by AFXWIN.H)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // Standard Dialog Data Exchange routines
  13. class COleCurrency; // forward reference (see afxdisp.h)
  14. class COleDateTime; // forward reference (see afxdisp.h)
  15. // simple text operations
  16. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, BYTE& value);
  17. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, short& value);
  18. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, int& value);
  19. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, UINT& value);
  20. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, long& value);
  21. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, DWORD& value);
  22. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, CString& value);
  23. #if _MFC_VER >= 0x0600
  24. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, LPTSTR value, int nMaxLen);
  25. #endif
  26. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, float& value);
  27. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, double& value);
  28. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, COleCurrency& value);
  29. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, COleDateTime& value);
  30. // special control types
  31. void AFXAPI DDX_Check(CDataExchange* pDX, int nIDC, int& value);
  32. void AFXAPI DDX_Radio(CDataExchange* pDX, int nIDC, int& value);
  33. void AFXAPI DDX_LBString(CDataExchange* pDX, int nIDC, CString& value);
  34. void AFXAPI DDX_CBString(CDataExchange* pDX, int nIDC, CString& value);
  35. void AFXAPI DDX_LBIndex(CDataExchange* pDX, int nIDC, int& index);
  36. void AFXAPI DDX_CBIndex(CDataExchange* pDX, int nIDC, int& index);
  37. void AFXAPI DDX_LBStringExact(CDataExchange* pDX, int nIDC, CString& value);
  38. void AFXAPI DDX_CBStringExact(CDataExchange* pDX, int nIDC, CString& value);
  39. void AFXAPI DDX_Scroll(CDataExchange* pDX, int nIDC, int& value);
  40. #if _MFC_VER >= 0x0600
  41. void AFXAPI DDX_Slider(CDataExchange* pDX, int nIDC, int& value);
  42. void AFXAPI DDX_MonthCalCtrl(CDataExchange* pDX, int nIDC, CTime& value);
  43. void AFXAPI DDX_MonthCalCtrl(CDataExchange* pDX, int nIDC, COleDateTime& value);
  44. void AFXAPI DDX_DateTimeCtrl(CDataExchange* pDX, int nIDC, CTime& value);
  45. void AFXAPI DDX_DateTimeCtrl(CDataExchange* pDX, int nIDC, COleDateTime& value);
  46. #endif
  47. // for getting access to the actual controls
  48. void AFXAPI DDX_Control(CDataExchange* pDX, int nIDC, CWnd& rControl);
  49. /////////////////////////////////////////////////////////////////////////////
  50. // Standard Dialog Data Validation routines
  51. // range - value must be >= minVal and <= maxVal
  52. // NOTE: you will require casts for 'minVal' and 'maxVal' to use the
  53. // UINT, DWORD or float types
  54. void AFXAPI DDV_MinMaxByte(CDataExchange* pDX, BYTE value, BYTE minVal, BYTE maxVal);
  55. void AFXAPI DDV_MinMaxShort(CDataExchange* pDX, short value, short minVal, short maxVal);
  56. void AFXAPI DDV_MinMaxInt(CDataExchange* pDX, int value, int minVal, int maxVal);
  57. void AFXAPI DDV_MinMaxLong(CDataExchange* pDX, long value, long minVal, long maxVal);
  58. void AFXAPI DDV_MinMaxUInt(CDataExchange* pDX, UINT value, UINT minVal, UINT maxVal);
  59. void AFXAPI DDV_MinMaxDWord(CDataExchange* pDX, DWORD value, DWORD minVal, DWORD maxVal);
  60. void AFXAPI DDV_MinMaxFloat(CDataExchange* pDX, float const& value, float minVal, float maxVal);
  61. void AFXAPI DDV_MinMaxDouble(CDataExchange* pDX, double const& value, double minVal, double maxVal);
  62. #if _MFC_VER >= 0x0600
  63. // special control types
  64. void AFXAPI DDV_MinMaxSlider(CDataExchange* pDX, DWORD value, DWORD minVal, DWORD maxVal);
  65. void AFXAPI DDV_MinMaxDateTime(CDataExchange* pDX, CTime& refValue, const CTime* refMinRange, const CTime* refMaxRange);
  66. void AFXAPI DDV_MinMaxDateTime(CDataExchange* pDX, COleDateTime& refValue, const COleDateTime* refMinRange, const COleDateTime* refMaxRange);
  67. void AFXAPI DDV_MinMaxMonth(CDataExchange* pDX, CTime& refValue, const CTime* pMinRange, const CTime* pMaxRange);
  68. void AFXAPI DDV_MinMaxMonth(CDataExchange* pDX, COleDateTime& refValue, const COleDateTime* refMinRange, const COleDateTime* refMaxRange);
  69. #endif
  70. // number of characters
  71. void AFXAPI DDV_MaxChars(CDataExchange* pDX, CString const& value, int nChars);
  72. /////////////////////////////////////////////////////////////////////////////