2020-04-01 11:55:13 +00:00
|
|
|
#include <string>
|
2020-04-01 14:13:39 +00:00
|
|
|
#include <windows.h>
|
2020-02-25 15:11:25 +00:00
|
|
|
|
|
|
|
class ProgressWindow {
|
|
|
|
public:
|
|
|
|
ProgressWindow( HINSTANCE hInstance, HWND parent_window );
|
|
|
|
|
|
|
|
void mainLoop();
|
|
|
|
static LRESULT CALLBACK messageHandler( HWND hwnd, UINT umsg, WPARAM wParam,
|
|
|
|
LPARAM lParam );
|
|
|
|
HWND getWindow();
|
|
|
|
|
|
|
|
~ProgressWindow() {
|
|
|
|
EnableWindow( parent, true );
|
|
|
|
SetFocus( parent );
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
HWND window;
|
|
|
|
HWND progress_bar;
|
|
|
|
HWND progress_label;
|
|
|
|
HWND parent;
|
|
|
|
|
|
|
|
const int window_width{ 350 };
|
|
|
|
const int window_height{ 100 };
|
|
|
|
static ProgressWindow *pw;
|
|
|
|
};
|