home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / MFC / INCLUDE / AFXDD_.H_ / AFXDD_.H
Encoding:
Text File  |  1993-02-08  |  2.8 KB  |  57 lines

  1. // Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992 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 Microsoft
  7. // QuickHelp and/or WinHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. // Do not include this file directly (included by AFXWIN.H)
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // Standard Dialog Data Exchange routines
  15.  
  16. // simple text operations
  17. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, int& value);
  18. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, UINT& value);
  19. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, long& value);
  20. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, DWORD& value);
  21. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, CString& value);
  22. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, float& value);
  23. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, double& value);
  24.  
  25. // special control types
  26. void AFXAPI DDX_Check(CDataExchange* pDX, int nIDC, int& value);
  27. void AFXAPI DDX_Radio(CDataExchange* pDX, int nIDC, int& value);
  28. void AFXAPI DDX_LBString(CDataExchange* pDX, int nIDC, CString& value);
  29. void AFXAPI DDX_CBString(CDataExchange* pDX, int nIDC, CString& value);
  30. void AFXAPI DDX_LBIndex(CDataExchange* pDX, int nIDC, int& index);
  31. void AFXAPI DDX_CBIndex(CDataExchange* pDX, int nIDC, int& index);
  32. #if (WINVER >= 0x030a)
  33. void AFXAPI DDX_LBStringExact(CDataExchange* pDX, int nIDC, CString& value);
  34. void AFXAPI DDX_CBStringExact(CDataExchange* pDX, int nIDC, CString& value);
  35. #endif
  36.  
  37. // for getting access to the actual controls
  38. void AFXAPI DDX_Control(CDataExchange* pDX, int nIDC, CWnd& rControl);
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41. // Standard Dialog Data Validation routines
  42.  
  43. // range - value must be >= minVal and <= maxVal
  44. // NOTE: you will require casts for 'minVal' and 'maxVal' to use the
  45. //   UINT, DWORD or float types
  46. void AFXAPI DDV_MinMaxInt(CDataExchange* pDX, int value, int minVal, int maxVal);
  47. void AFXAPI DDV_MinMaxLong(CDataExchange* pDX, long value, long minVal, long maxVal);
  48. void AFXAPI DDV_MinMaxUInt(CDataExchange* pDX, UINT value, UINT minVal, UINT maxVal);
  49. void AFXAPI DDV_MinMaxDWord(CDataExchange* pDX, DWORD value, DWORD minVal, DWORD maxVal);
  50. void AFXAPI DDV_MinMaxFloat(CDataExchange* pDX, float const& value, float minVal, float maxVal);
  51. void AFXAPI DDV_MinMaxDouble(CDataExchange* pDX, double const& value, double minVal, double maxVal);
  52.  
  53. // number of characters
  54. void AFXAPI DDV_MaxChars(CDataExchange* pDX, CString const& value, int nChars);
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57.