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.

52 lines
1.4 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. /* These statments define indexes into the ruler button table. They must agree
  5. with the order the bitmaps are read in mmw.c. */
  6. #define btnNIL (-1)
  7. #define btnMIN 0
  8. #define btnLTAB 0
  9. #define btnDTAB 1
  10. #define btnTABMAX 1
  11. #define btnSINGLE 2
  12. #define btnSP15 3
  13. #define btnDOUBLE 4
  14. #define btnSPACEMAX 4
  15. #define btnLEFT 5
  16. #define btnCENTER 6
  17. #define btnRIGHT 7
  18. #define btnJUST 8
  19. /* Whereas Write 2.x inverted the above-mentioned buttons, the Write 3.x
  20. buttons have been changed to have rounded corners so can't do that.
  21. Instead we "follow" the first 8 buttons with 8 more that are "filled-in"
  22. so we blt back and forth between the two ..pault 7/7/89 */
  23. #define btnMaxReal 9
  24. #define btnMaxUsed 9
  25. /* These statements define the different type of places a mouse might button
  26. down on the ruler. */
  27. #define rlcNIL (-1)
  28. #define rlcTAB 0
  29. #define rlcSPACE 1
  30. #define rlcJUST 2
  31. #define rlcRULER 3
  32. #define rlcBTNMAX 3
  33. #define rlcMAX 4
  34. /* These statements define the different types of marks that can appear on the
  35. ruler. */
  36. #define rmkMIN 0
  37. #define rmkMARGMIN 0
  38. #define rmkINDENT 0
  39. #define rmkLMARG 1
  40. #define rmkRMARG 2
  41. #define rmkMARGMAX 3
  42. #define rmkLTAB 3
  43. #define rmkDTAB 4
  44. #define rmkMAX 5
  45.