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.

38 lines
808 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. visuals.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _VISUALS_H_
  9. #define _VISUALS_H_
  10. #define NumStandardColorIndices() (16)
  11. #define NumColorIndices() (NumStandardColorIndices()+1)
  12. #define NumStyleIndices() (5)
  13. #define NumWidthIndices() (9)
  14. #define IndexToStandardColor(i) (argbStandardColors[i])
  15. #define IndexToStyle(i) (i)
  16. #define IndexToWidth(i) (i+1)
  17. #define WidthToIndex(i) (i-1)
  18. #define StyleToIndex(i) (i)
  19. extern COLORREF argbStandardColors[16];
  20. //===========================================================================
  21. // Exported Functions
  22. //===========================================================================
  23. INT ColorToIndex( COLORREF );
  24. #endif
  25.