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.

64 lines
1.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 1998-2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // DDxDDv.h
  7. //
  8. // Description:
  9. // Definition of custom dialog data exchange/dialog data validation
  10. // routines.
  11. //
  12. // Implementation File:
  13. // DDxDDv.cpp
  14. //
  15. // Maintained By:
  16. // Galen Barbee (GalenB) Mmmm DD, 1998
  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. inline void AFXAPI DDX_Number(
  46. IN OUT CDataExchange * pDX,
  47. IN int nIDC,
  48. IN OUT LONG & rnValue,
  49. IN LONG nMin,
  50. IN LONG nMax,
  51. IN BOOL bSigned
  52. )
  53. {
  54. DDX_Number(pDX, nIDC, (DWORD &) rnValue, (DWORD) nMin, (DWORD) nMax, bSigned);
  55. }
  56. /////////////////////////////////////////////////////////////////////////////
  57. #endif // _DDXDDV_H_