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.

72 lines
1.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-1997 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // DDxDDv.h
  7. //
  8. // Abstract:
  9. // Definition of custom dialog data exchange/dialog data validation
  10. // routines.
  11. //
  12. // Implementation File:
  13. // DDxDDv.cpp
  14. //
  15. // Author:
  16. // David Potter (davidp) September 5, 1996
  17. //
  18. // Revision History:
  19. //
  20. // Notes:
  21. //
  22. /////////////////////////////////////////////////////////////////////////////
  23. #ifndef _DDXDDV_H_
  24. #define _DDXDDV_H_
  25. /////////////////////////////////////////////////////////////////////////////
  26. // Include Files
  27. /////////////////////////////////////////////////////////////////////////////
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Global Function Prototypes
  30. /////////////////////////////////////////////////////////////////////////////
  31. void AFXAPI DDX_Number(
  32. IN OUT CDataExchange * pDX,
  33. IN int nIDC,
  34. IN OUT DWORD & rdwValue,
  35. IN DWORD dwMin,
  36. IN DWORD dwMax,
  37. IN BOOL bSigned = FALSE
  38. );
  39. void AFXAPI DDV_RequiredText(
  40. IN OUT CDataExchange * pDX,
  41. IN int nIDC,
  42. IN int nIDCLabel,
  43. IN const CString & rstrValue
  44. );
  45. void AFXAPI DDV_Path(
  46. IN OUT CDataExchange * pDX,
  47. IN int nIDC,
  48. IN int nIDCLabel,
  49. IN const CString & rstrValue
  50. );
  51. inline void AFXAPI DDX_Number(
  52. IN OUT CDataExchange * pDX,
  53. IN int nIDC,
  54. IN OUT LONG & rnValue,
  55. IN LONG nMin,
  56. IN LONG nMax,
  57. IN BOOL bSigned
  58. )
  59. {
  60. DDX_Number(pDX, nIDC, (DWORD &) rnValue, (DWORD) nMin, (DWORD) nMax, bSigned);
  61. }
  62. /////////////////////////////////////////////////////////////////////////////
  63. #endif // _DDXDDV_H_