tv_rename/windows/progresswindow.hpp

28 lines
615 B
C++
Raw Normal View History

2020-02-25 15:11:25 +00:00
#include <string>
#include <windows.h>
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;
};