toolbarStatic.h 1001 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_STATIC_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_STATIC_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./toolbarItem.h"
  7. class ToolbarStatic : public ToolbarItem
  8. {
  9. public:
  10. typedef enum
  11. {
  12. styleLabel = 0x00000000,
  13. styleSpacer = 0x00010000,
  14. styleSeparator = 0x00020000,
  15. } staticStyles;
  16. protected:
  17. ToolbarStatic(LPCSTR pszName, UINT nStyle, INT nIcon, LPCWSTR pszText, LPCWSTR pszDescription);
  18. ~ToolbarStatic() {}
  19. public:
  20. static ToolbarItem* CALLBACK CreateInstance(ToolbarItem::Template *itemTemplate);
  21. public:
  22. BOOL AdjustRect(HWND hToolbar, RECT *proposedRect);
  23. BOOL Paint(HWND hToolbar, HDC hdc, const RECT *paintRect, UINT state);
  24. INT GetTip(LPTSTR pszBuffer, INT cchBufferMax);
  25. void UpdateSkin(HWND hToolbar);
  26. BOOL FillMenuInfo(HWND hToolbar, MENUITEMINFO *pmii, LPWSTR pszBuffer, INT cchBufferMax);
  27. protected:
  28. INT spaceWidth;
  29. };
  30. #endif //NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_STATIC_HEADER