From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/omBrowser/toolbarProgress.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Src/omBrowser/toolbarProgress.h (limited to 'Src/omBrowser/toolbarProgress.h') diff --git a/Src/omBrowser/toolbarProgress.h b/Src/omBrowser/toolbarProgress.h new file mode 100644 index 00000000..8e33da28 --- /dev/null +++ b/Src/omBrowser/toolbarProgress.h @@ -0,0 +1,34 @@ +#ifndef NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_PROGRESS_HEADER +#define NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_PROGRESS_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include "./toolbarItem.h" + +class ToolbarProgress : public ToolbarItem +{ +protected: + ToolbarProgress(LPCSTR pszName, UINT nStyle, LPCWSTR pszText, LPCWSTR pszDescription); + ~ToolbarProgress(); + +public: + static ToolbarItem* CALLBACK CreateInstance(ToolbarItem::Template *itemTemplate); + +public: + void SetStyle(HWND hToolbar, UINT newStyle, UINT styleMask); + BOOL AdjustRect(HWND hToolbar, RECT *proposedRect); + BOOL Paint(HWND hToolbar, HDC hdc, const RECT *paintRect, UINT state); + void UpdateSkin(HWND hToolbar); + + + BOOL Animate(HWND hToolbar, BOOL fAnimate); + +protected: + HBITMAP bitmap; + INT frame; + HWND hTimer; +}; + +#endif //NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_PROGRESS_HEADER -- cgit