Leaked source code of windows server 2003
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.

60 lines
3.4 KiB

  1. // Copyright (c)1997-1999 Microsoft Corporation, All Rights Reserved
  2. #ifndef __FMTINFO_H__
  3. #define __FMTINFO_H__
  4. #define RGB_BLACK RGB(0x00, 0x00, 0x00)
  5. #define RGB_WHITE RGB(0xFF, 0xFF, 0xFF)
  6. #define RGB_RED RGB(0xFF, 0x00, 0x00)
  7. #define RGB_GREEN RGB(0x00, 0xFF, 0x00)
  8. #define RGB_BLUE RGB(0x00, 0x00, 0xFF)
  9. #define RGB_YELLOW RGB(0xFF, 0xFF, 0x00)
  10. #define RGB_MAGENTA RGB(0xFF, 0x00, 0xFF)
  11. #define RGB_CYAN RGB(0x00, 0xFF, 0xFF)
  12. #define RGB_LIGHTGRAY RGB(0xC0, 0xC0, 0xC0)
  13. #define RGB_GRAY RGB(0x80, 0x80, 0x80)
  14. #define RGB_DARKRED RGB(0x80, 0x00, 0x00)
  15. #define RGB_DARKGREEN RGB(0x00, 0x80, 0x00)
  16. #define RGB_DARKBLUE RGB(0x00, 0x00, 0x80)
  17. #define RGB_LIGHTBROWN RGB(0x80, 0x80, 0x00)
  18. #define RGB_DARKMAGENTA RGB(0x80, 0x00, 0x80)
  19. #define RGB_DARKCYAN RGB(0x00, 0x80, 0x80)
  20. // IMPORTANT: These macros depend heavily on the order of things in colors.cpp.
  21. // 1) The order of colors in window must be Source Text, Text Selection, Text Highlight.
  22. #define AUTO_TEXT { TRUE, TRUE, FALSE, FALSE, FALSE, COLOR_WINDOWTEXT }, { TRUE, TRUE, FALSE, FALSE, FALSE, COLOR_WINDOW }
  23. #define AUTO_SELECTION { TRUE, FALSE, FALSE, TRUE, FALSE, 0 }, { TRUE, FALSE, FALSE, TRUE, FALSE, 0 }
  24. #define AUTO_HIGHLIGHT { TRUE, TRUE, FALSE, FALSE, FALSE, COLOR_HIGHLIGHTTEXT }, { TRUE, TRUE, FALSE, FALSE, FALSE, COLOR_HIGHLIGHT }
  25. #define AUTO_REF(n) { TRUE, FALSE, FALSE, FALSE, FALSE, n }, { TRUE, FALSE, FALSE, FALSE, FALSE, n }
  26. #define AUTO_REF_SRC(n) { TRUE, FALSE, TRUE, FALSE, FALSE, n }, { TRUE, FALSE, TRUE, FALSE, FALSE, n }
  27. #define BACKAUTO_TEXT { FALSE, TRUE, FALSE, FALSE, FALSE, COLOR_WINDOWTEXT }, { TRUE, TRUE, FALSE, FALSE, FALSE, COLOR_WINDOW }
  28. #define BACKAUTO_SELECTION { FALSE, FALSE, FALSE, TRUE, FALSE, 0 }, { TRUE, FALSE, FALSE, TRUE, FALSE, 0 }
  29. #define BACKAUTO_HIGHLIGHT { FALSE, TRUE, FALSE, FALSE, FALSE, COLOR_HIGHLIGHTTEXT }, { TRUE, TRUE, FALSE, FALSE, FALSE, COLOR_HIGHLIGHT }
  30. #define BACKAUTO_REF(n) { FALSE, FALSE, FALSE, FALSE, FALSE, n }, { TRUE, FALSE, FALSE, FALSE, FALSE, n }
  31. #define BACKAUTO_REF_SRC(n) { FALSE, FALSE, TRUE, FALSE, FALSE, n }, { TRUE, FALSE, TRUE, FALSE, FALSE, n }
  32. #define NOTAUTO_TEXT { FALSE, TRUE, FALSE, FALSE, FALSE, COLOR_WINDOWTEXT }, { FALSE, TRUE, FALSE, FALSE, FALSE, COLOR_WINDOW }
  33. #define NOTAUTO_SELECTION { FALSE, FALSE, FALSE, TRUE, FALSE, 0 }, { FALSE, FALSE, FALSE, TRUE, FALSE, 0 }
  34. #define NOTAUTO_HIGHLIGHT { FALSE, TRUE, FALSE, FALSE, FALSE, COLOR_HIGHLIGHTTEXT }, { FALSE, TRUE, FALSE, FALSE, FALSE, COLOR_HIGHLIGHT }
  35. #define NOTAUTO_REF(n) { FALSE, FALSE, FALSE, FALSE, FALSE, n }, { FALSE, FALSE, FALSE, FALSE, FALSE, n }
  36. #define NOTAUTO_REF_SRC(n) { FALSE, FALSE, TRUE, FALSE, FALSE, n }, { FALSE, FALSE, TRUE, FALSE, FALSE, n }
  37. struct AUTO_COLOR
  38. {
  39. WORD bOn:1; // Is auto color being used now?
  40. WORD bSys:1; // Get the color from the system(1) or from a window(0)?
  41. WORD bSrc:1; // If bSys == 0, use this window(0) or the Source Window(1)?
  42. WORD bRev:1; // If from this window, reverse fore/background(1)?
  43. WORD bUpd:1; // Used by UpdateAutoColors().
  44. WORD index:5; // Index into element list(bSys==0) or COLOR_* value (bSys==1).
  45. };
  46. #endif /* __FMTINFO_H__ */