home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / MFCINC.PAK / AFXDD_.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  3.3 KB  |  64 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1995 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.  
  11. // Do not include this file directly (included by AFXWIN.H)
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // Standard Dialog Data Exchange routines
  15.  
  16. class COleCurrency;    // forward reference (see afxdisp.h)
  17. class COleDateTime;    // forward reference (see afxdisp.h)
  18.  
  19. // simple text operations
  20. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, BYTE& value);
  21. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, short& value);
  22. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, int& value);
  23. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, UINT& value);
  24. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, long& value);
  25. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, DWORD& value);
  26. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, CString& value);
  27. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, float& value);
  28. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, double& value);
  29. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, COleCurrency& value);
  30. void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, COleDateTime& value);
  31.  
  32. // special control types
  33. void AFXAPI DDX_Check(CDataExchange* pDX, int nIDC, int& value);
  34. void AFXAPI DDX_Radio(CDataExchange* pDX, int nIDC, int& value);
  35. void AFXAPI DDX_LBString(CDataExchange* pDX, int nIDC, CString& value);
  36. void AFXAPI DDX_CBString(CDataExchange* pDX, int nIDC, CString& value);
  37. void AFXAPI DDX_LBIndex(CDataExchange* pDX, int nIDC, int& index);
  38. void AFXAPI DDX_CBIndex(CDataExchange* pDX, int nIDC, int& index);
  39. void AFXAPI DDX_LBStringExact(CDataExchange* pDX, int nIDC, CString& value);
  40. void AFXAPI DDX_CBStringExact(CDataExchange* pDX, int nIDC, CString& value);
  41. void AFXAPI DDX_Scroll(CDataExchange* pDX, int nIDC, int& value);
  42.  
  43. // for getting access to the actual controls
  44. void AFXAPI DDX_Control(CDataExchange* pDX, int nIDC, CWnd& rControl);
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // Standard Dialog Data Validation routines
  48.  
  49. // range - value must be >= minVal and <= maxVal
  50. // NOTE: you will require casts for 'minVal' and 'maxVal' to use the
  51. //   UINT, DWORD or float types
  52. void AFXAPI DDV_MinMaxByte(CDataExchange* pDX, BYTE value, BYTE minVal, BYTE maxVal);
  53. void AFXAPI DDV_MinMaxInt(CDataExchange* pDX, int value, int minVal, int maxVal);
  54. void AFXAPI DDV_MinMaxLong(CDataExchange* pDX, long value, long minVal, long maxVal);
  55. void AFXAPI DDV_MinMaxUInt(CDataExchange* pDX, UINT value, UINT minVal, UINT maxVal);
  56. void AFXAPI DDV_MinMaxDWord(CDataExchange* pDX, DWORD value, DWORD minVal, DWORD maxVal);
  57. void AFXAPI DDV_MinMaxFloat(CDataExchange* pDX, float const& value, float minVal, float maxVal);
  58. void AFXAPI DDV_MinMaxDouble(CDataExchange* pDX, double const& value, double minVal, double maxVal);
  59.  
  60. // number of characters
  61. void AFXAPI DDV_MaxChars(CDataExchange* pDX, CString const& value, int nChars);
  62.  
  63. /////////////////////////////////////////////////////////////////////////////
  64.