1
0

uiUpdatingData.h 830 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include "./main.h"
  3. class UpdatingDataUI
  4. {
  5. public:
  6. BURNLIB_API UpdatingDataUI(void);
  7. BURNLIB_API ~UpdatingDataUI(void);
  8. public:
  9. BURNLIB_API void Show(int delay, HWND ownerWnd);
  10. BURNLIB_API void Show(int delay, const wchar_t* text, int animation, HWND ownerWnd);
  11. BURNLIB_API void Hide(void);
  12. protected:
  13. static LRESULT CALLBACK WndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  14. void OnInitDialog(HWND hwndDlg);
  15. void OnDestroy(void);
  16. void OnShowTimer(void);
  17. void OnAnimationTimer(void);
  18. void OnPaint(PAINTSTRUCT *ps);
  19. static DWORD WINAPI MessagePump(void* param);
  20. protected:
  21. HWND hwnd;
  22. HWND ownerWnd;
  23. HANDLE hThread;
  24. HANDLE evntExit;
  25. HANDLE evntStarted;
  26. int delay;
  27. wchar_t text[128];
  28. int animation;
  29. int animStep;
  30. int animMaxStep;
  31. RECT animRect;
  32. };