ids.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // Assorted defines and ids for the RulerRichEditCtrl
  3. //
  4. #ifndef _IDS_H_
  5. #define _IDS_H_
  6. // Some measures
  7. #define TOOLBAR_HEIGHT 28
  8. #define RULER_HEIGHT 26
  9. #define TOP_HEIGHT RULER_HEIGHT + TOOLBAR_HEIGHT
  10. #define FONT_COMBO_WIDTH 128
  11. #define SIZE_COMBO_WIDTH 48
  12. #define COMBO_HEIGHT 128
  13. #define COMBO_WIDTH 48
  14. #define COLOR_WIDTH 64
  15. #define FONT_NAME_POS 2
  16. #define FONT_SIZE_POS 4
  17. #define FONT_COLOR_POS 6
  18. // Measures for the ruler
  19. #define MODE_INCH 0
  20. #define MODE_METRIC 1
  21. // ID of sub-controls
  22. #define TOOLBAR_CONTROL 10
  23. #define RULER_CONTROL 11
  24. #define RTF_CONTROL 12
  25. // Toolbar buttons
  26. #define BUTTON_FONT 20
  27. #define BUTTON_COLOR 21
  28. #define BUTTON_BOLD 22
  29. #define BUTTON_ITALIC 23
  30. #define BUTTON_UNDERLINE 24
  31. #define BUTTON_LEFTALIGN 25
  32. #define BUTTON_CENTERALIGN 26
  33. #define BUTTON_RIGHTALIGN 27
  34. #define BUTTON_INDENT 28
  35. #define BUTTON_OUTDENT 29
  36. #define BUTTON_BULLET 30
  37. #define DROPDOWN_FONT 31
  38. #define DROPDOWN_SIZE 32
  39. #define STRING_COLOR 33
  40. #define STRING_DEFAULT 34
  41. #define STRING_CUSTOM 35
  42. #define ID_BUTTONWRAP 36
  43. // Mouse handling
  44. extern UINT urm_RULERACTION;
  45. extern UINT urm_GETSCROLLPOS;
  46. #define UP 0
  47. #define DOWN 1
  48. #define MOVE 2
  49. #endif // _IDS_H_