新增设置窗口与逐像素透明度,Win7 接入 Aero 毛玻璃

This commit is contained in:
tongtong committed 2026-11-16 09:24:06 +08:00
1 parent e1e26acc49
commit 7e34929caa
12 files changed
+850 -9

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include <windows.h>
class AeroBackdrop
{
public:
AeroBackdrop() = default;
~AeroBackdrop();
AeroBackdrop(const AeroBackdrop&) = delete;
AeroBackdrop& operator=(const AeroBackdrop&) = delete;
bool Create(HWND owner);
void Sync(HWND owner);
void Refresh();
void Hide();
void Destroy();
bool IsValid() const { return hwnd_ != nullptr; }
private:
static LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void ApplyGlass(int width, int height);
HWND hwnd_ = nullptr;
int blur_width_ = 0;
int blur_height_ = 0;
bool blur_enabled_ = false;
bool visible_ = false;
};