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.

74 lines
1.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // DDxDDv.h
  7. //
  8. // Implementation File:
  9. // DDxDDv.cpp
  10. //
  11. // Description:
  12. // Definition of custom dialog data exchange/dialog data validation
  13. // routines.
  14. //
  15. // Author:
  16. // David Potter (DavidP) March 24, 1999
  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(
  55. pDX,
  56. nIDC,
  57. reinterpret_cast< DWORD & >( rnValue ),
  58. static_cast< DWORD >( nMin ),
  59. static_cast< DWORD >( nMax ),
  60. bSigned
  61. );
  62. } //*** DDXNumber( LONG )
  63. void CleanupLabel( LPTSTR psz );
  64. /////////////////////////////////////////////////////////////////////////////
  65. #endif // __DDXDDV_H__