toolbarProgress.h 866 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_PROGRESS_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_PROGRESS_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./toolbarItem.h"
  7. class ToolbarProgress : public ToolbarItem
  8. {
  9. protected:
  10. ToolbarProgress(LPCSTR pszName, UINT nStyle, LPCWSTR pszText, LPCWSTR pszDescription);
  11. ~ToolbarProgress();
  12. public:
  13. static ToolbarItem* CALLBACK CreateInstance(ToolbarItem::Template *itemTemplate);
  14. public:
  15. void SetStyle(HWND hToolbar, UINT newStyle, UINT styleMask);
  16. BOOL AdjustRect(HWND hToolbar, RECT *proposedRect);
  17. BOOL Paint(HWND hToolbar, HDC hdc, const RECT *paintRect, UINT state);
  18. void UpdateSkin(HWND hToolbar);
  19. BOOL Animate(HWND hToolbar, BOOL fAnimate);
  20. protected:
  21. HBITMAP bitmap;
  22. INT frame;
  23. HWND hTimer;
  24. };
  25. #endif //NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_PROGRESS_HEADER