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.

95 lines
2.3 KiB

  1. #define TOOLGROW 8 // power of 2
  2. #define IDC_TOOLBAR 189 // wParam sent to Parent
  3. //
  4. // Init routine, will register the various classes.
  5. //
  6. BOOL FAR PASCAL ControlInit (HANDLE hInst);
  7. void FAR PASCAL ControlCleanup (void);
  8. extern HBRUSH hbrGray;
  9. extern HBRUSH hbrButtonFace;
  10. extern HBRUSH hbrButtonShadow;
  11. extern HBRUSH hbrButtonText;
  12. extern HBRUSH hbrButtonHighLight;
  13. extern HBRUSH hbrWindowFrame;
  14. extern HBRUSH hbrWindowColour;
  15. extern DWORD rgbButtonHighLight;
  16. extern DWORD rgbButtonFocus;
  17. extern DWORD rgbButtonFace;
  18. extern DWORD rgbButtonText;
  19. extern DWORD rgbButtonShadow;
  20. extern DWORD rgbWindowFrame;
  21. extern DWORD rgbWindowColour;
  22. #if 0
  23. extern HBITMAP hbTBMain;
  24. extern HBITMAP hbTBMark;
  25. extern HBITMAP hbTBArrows;
  26. #endif
  27. #define TB_FIRST -1
  28. #define TB_LAST -2
  29. #define BTN_PLAY 0
  30. #define BTN_PAUSE 1
  31. #define BTN_STOP 2
  32. #define BTN_EJECT 3
  33. #define BTN_HOME 4
  34. #define BTN_RWD 5
  35. #define BTN_FWD 6
  36. #define BTN_END 7
  37. #define BTN_SEP 8
  38. #define TB_NUM_BMPS 9
  39. #define TB_NUM_BTNS 9
  40. #define ARROW_PREV 0
  41. #define ARROW_NEXT 1
  42. #define ARROW_NUM_BMPS 3
  43. #define ARROW_NUM_BTNS 2
  44. #define BTN_MARKIN 0
  45. #define BTN_MARKOUT 1
  46. #define MARK_NUM_BMPS 2
  47. #define MARK_NUM_BTNS 2
  48. #define BTNST_GRAYED 0
  49. #define BTNST_UP 1
  50. #define BTNST_DOWN 2
  51. #define TBINDEX_MAIN 0
  52. #define TBINDEX_MARK 1
  53. #define TBINDEX_ARROWS 2
  54. /* bitmap resources */
  55. #define IDR_TOOLBAR 101
  56. #define IDR_ARROWS 102
  57. #define IDR_MARK 103
  58. #define IDT_TBMAINCID 301
  59. #define IDT_TBMARKCID 302
  60. #define IDT_TBARROWSCID 303
  61. #define IDT_STATUSWINDOWCID 304
  62. #define IDT_PLAY 501
  63. #define IDT_PAUSE 502
  64. #define IDT_STOP 503
  65. #define IDT_EJECT 504
  66. #define IDT_HOME 505
  67. #define IDT_RWD 506
  68. #define IDT_FWD 507
  69. #define IDT_END 508
  70. #define IDT_MARKIN 509
  71. #define IDT_MARKOUT 510
  72. #define IDT_ARROWPREV 511
  73. #define IDT_ARROWNEXT 512
  74. #define MSEC_BUTTONREPEAT 200 // milliseconds for auto-repeat
  75. #define REPEAT_ID 200
  76.