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.

76 lines
2.4 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. /* Originally, this file contained nothing but screen constants, but these
  5. constants had to become variables to account for all different display devices.
  6. */
  7. /* size of lines for dnMax estimation purposes */
  8. extern int dypAveInit;
  9. /* width of the selection bar area to the left of lines */
  10. extern int xpSelBar;
  11. extern int dxpScrlBar;
  12. extern int dypScrlBar;
  13. extern int dxpInfoSize;
  14. #define xaRightMax 31680
  15. extern int xpRightMax;
  16. extern int xpMinScroll;
  17. extern int xpRightLim;
  18. /* these define the initial window size and amount of white space above
  19. the first line */
  20. extern int ypMaxWwInit;
  21. /* should be > than largest window height + height of blank line after
  22. the endmark */
  23. extern int ypMaxAll; /* used for invalidation */
  24. extern int dypWwInit;
  25. extern int dypBand; /* formerly dpxyLineSizeMin */
  26. extern int dypRuler;
  27. extern int ypSubSuper;
  28. /* number of quanta in elevator control */
  29. #define drMax 256
  30. #define ctcAuto 10
  31. #define ctrAuto 4
  32. #define cxpAuto 72
  33. /* DL structure revised, 3 Sept KJS, CS */
  34. /* 14 Nov 89 ..pault (changed dcpMac from int to
  35. typeCP because we experienced
  36. wraparound when sizing large
  37. graphics objects) */
  38. struct EDL
  39. {
  40. unsigned char dcpDepend : 8;
  41. unsigned char ichCpMin : 8;
  42. unsigned fValid : 1;
  43. #ifdef CASHMERE
  44. unsigned fStyleInfo : 1;
  45. #else
  46. unsigned fSplat: 1;
  47. #endif
  48. unsigned fGraphics : 1;
  49. unsigned fIchCpIncr : 1;
  50. unsigned xpLeft : 12;
  51. typeCP dcpMac; /* representing cpMac */
  52. typeCP cpMin;
  53. int xpMac;
  54. int dyp; /* height of the dl */
  55. int yp; /* position of the dl */
  56. };
  57. #define cchEDL (sizeof (struct EDL))
  58. #define cwEDL (cchEDL / sizeof(int))
  59. #define cedlInit 20
  60.