Etterna 0.74.4
Loading...
Searching...
No Matches
LoadingWindow_Win32.h
1/* LoadingWindow_Win32 - Loading window using a Windows dialog box. */
2
3#ifndef LOADING_WINDOW_WIN32_H
4#define LOADING_WINDOW_WIN32_H
5
6#include "LoadingWindow.h"
7#include <windows.h>
8#include "archutils/Win32/AppInstance.h"
9
11{
12 public:
15
16 void Paint();
17 void InternalPaint();
18 void SetText(const std::string& sText);
19 void SetTextInternal();
20 void SetIcon(const RageSurface* pIcon);
21 void SetSplash(const RageSurface* pSplash);
22 void SetProgress(const int progress);
23 void SetTotalWork(const int totalWork);
24 void SetIndeterminate(bool indeterminate);
25
26 private:
27 AppInstance handle;
28 HWND hwnd;
29 HICON m_hIcon;
30 HFONT f;
31 LOGFONT lf;
32 std::string progress;
33 std::string lastText;
34
35 HGDIOBJ bitMapBG;
36 HDC hdcBG;
37
38 static INT_PTR CALLBACK WndProc(HWND hWnd,
39 UINT msg,
40 WPARAM wParam,
41 LPARAM lParam);
42};
43#define USE_LOADING_WINDOW_WIN32
44
45#endif
get an HINSTANCE for starting dialog boxes.
Definition AppInstance.h:8
Definition LoadingWindow_Win32.h:11
Opens and displays the loading banner.
Definition LoadingWindow.h:9
Definition RageSurface.h:90