diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/burnlib/uiUpdatingData.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
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 |