diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/burnlib/uiUpdatingData.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/burnlib/uiUpdatingData.h')
-rw-r--r-- | Src/burnlib/uiUpdatingData.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Src/burnlib/uiUpdatingData.h b/Src/burnlib/uiUpdatingData.h new file mode 100644 index 00000000..e490c869 --- /dev/null +++ b/Src/burnlib/uiUpdatingData.h @@ -0,0 +1,40 @@ +#pragma once + +#include "./main.h" + +class UpdatingDataUI +{ +public: + BURNLIB_API UpdatingDataUI(void); + BURNLIB_API ~UpdatingDataUI(void); + +public: + BURNLIB_API void Show(int delay, HWND ownerWnd); + BURNLIB_API void Show(int delay, const wchar_t* text, int animation, HWND ownerWnd); + BURNLIB_API void Hide(void); + +protected: + static LRESULT CALLBACK WndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); + void OnInitDialog(HWND hwndDlg); + void OnDestroy(void); + void OnShowTimer(void); + void OnAnimationTimer(void); + void OnPaint(PAINTSTRUCT *ps); + static DWORD WINAPI MessagePump(void* param); + +protected: + HWND hwnd; + HWND ownerWnd; + HANDLE hThread; + HANDLE evntExit; + HANDLE evntStarted; + int delay; + wchar_t text[128]; + int animation; + int animStep; + int animMaxStep; + RECT animRect; + + + +};
\ No newline at end of file |