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.

53 lines
1.6 KiB

  1. #ifndef _HXX_FORMCNST
  2. #define _HXX_FORMCNST
  3. //+---------------------------------------------------------------------------
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  7. //
  8. // File: formcnst.hxx
  9. //
  10. // Contents: Global constants, macros, and inline functions for forms
  11. // project.
  12. //
  13. // History: 24-Oct-94 KrishnaG appropriated from the Forms project
  14. //
  15. //----------------------------------------------------------------------------
  16. // Max num of params in event
  17. const int EVENTPARAMS_MAX = 16;
  18. //+------------------------------------------------------------------------
  19. //
  20. // Ole Automation constants
  21. //
  22. //-------------------------------------------------------------------------
  23. #define VB_TRUE ((VARIANT_BOOL)-1) // TRUE for VARIANT_BOOL
  24. #define VB_FALSE ((VARIANT_BOOL)0) // FALSE for VARIANT_BOOL
  25. //+------------------------------------------------------------------------
  26. //
  27. // Macros for dealing with BOOLean properties
  28. //
  29. //-------------------------------------------------------------------------
  30. #define EQUAL_BOOL(_x_,_y_) (((_x_) && (_y_)) || (!(_x_) && !(_y_)))
  31. #define ENSURE_BOOL(_x_) ((_x_) ? TRUE : FALSE)
  32. #define ISBOOL(_x_) ((_x_) == TRUE || (_x_) == FALSE)
  33. //+------------------------------------------------------------------------
  34. //
  35. // Handle changes in IsEqual*
  36. //
  37. //-------------------------------------------------------------------------
  38. #undef IsEqualIID
  39. #define IsEqualIID(a, b) (a == b)
  40. #undef IsEqualCLSID
  41. #define IsEqualCLSID(a, b) (a == b)
  42. #endif // #ifndef _HXX_FORMCNST