This commit is contained in:
ivaquero
2026-04-18 06:13:30 +08:00
parent 49b39b74d2
commit ec341ddba2
36 changed files with 1941 additions and 273 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef WINDOW_HELPER_WINDOWS_H
#define WINDOW_HELPER_WINDOWS_H
#include <QWidget>
#ifdef Q_OS_WIN
#include <Windows.h>
#endif
class WindowHelperWindows
{
public:
static void setupAlwaysOnTopForFullscreen(QWidget *widget);
static void setWindowAlwaysOnTop(QWidget *widget, bool alwaysOnTop);
static void setWindowClickThrough(QWidget *widget, bool clickThrough);
private:
static void setWindowExStyle(QWidget *widget, DWORD style, bool enable);
static HWND getWindowHandle(QWidget *widget);
};
#endif // WINDOW_HELPER_WINDOWS_H