Extract file menu binding and Win32 splash helper

This commit is contained in:
2026-06-16 11:10:31 +02:00
parent 8afeb087b8
commit d135835787
8 changed files with 369 additions and 232 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include <windows.h>
#include <atomic>
#include <thread>
namespace pp::platform::windows {
class SplashScreen final
{
public:
explicit SplashScreen(HINSTANCE hInst);
~SplashScreen();
SplashScreen(const SplashScreen&) = delete;
SplashScreen& operator=(const SplashScreen&) = delete;
SplashScreen(SplashScreen&&) = delete;
SplashScreen& operator=(SplashScreen&&) = delete;
void dismiss();
private:
void thread_main();
HINSTANCE hInst_{};
std::atomic<HWND> dialog_{};
std::jthread thread_;
};
}