blob: 8e33da286352dd9cd56374298a8a605bcdd220c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
|