mirror of
https://github.com/Maplespe/DWMBlurGlass.git
synced 2026-12-05 01:35:40 -05:00
52 lines
2.0 KiB
C++
52 lines
2.0 KiB
C++
/**
|
|
* FileName: CustomBackdropEffect.h
|
|
*
|
|
* Copyright (C) 2024 Maplespe
|
|
*
|
|
* This file is part of MToolBox and DWMBlurGlass and MDWMBlurGlassExt.
|
|
* DWMBlurGlass is free software: you can redistribute it and/or modify it under the terms of the
|
|
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3
|
|
* of the License, or any later version.
|
|
*
|
|
* DWMBlurGlass is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
* See the GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License along with Foobar.
|
|
* If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
|
*/
|
|
#pragma once
|
|
#include "DWMStruct.h"
|
|
|
|
namespace MDWMBlurGlassExt::CustomBackdrop
|
|
{
|
|
void Attach();
|
|
void Detach();
|
|
void Refresh();
|
|
|
|
HRESULT WINAPI CTopLevelWindow_InitializeVisualTreeClone(
|
|
DWM::CTopLevelWindow* This,
|
|
DWM::CTopLevelWindow* topLevelWindow,
|
|
UINT cloneOptions
|
|
);
|
|
HRESULT WINAPI CTopLevelWindow_UpdateNCAreaBackground(DWM::CTopLevelWindow* This);
|
|
HRESULT WINAPI CTopLevelWindow_ValidateVisual(DWM::CTopLevelWindow* This);
|
|
void WINAPI CTopLevelWindow_Destructor(DWM::CTopLevelWindow* This);
|
|
HRESULT WINAPI ResourceHelper_CreateGeometryFromHRGN(HRGN hrgn, DWM::CRgnGeometryProxy** geometry);
|
|
|
|
struct MILCMD
|
|
{
|
|
HWND GetHwnd() const
|
|
{
|
|
return *reinterpret_cast<HWND*>(reinterpret_cast<ULONG_PTR>(this) + 4);
|
|
}
|
|
LPCRECT GetRect() const
|
|
{
|
|
return reinterpret_cast<LPCRECT>(reinterpret_cast<ULONG_PTR>(this) + 12);
|
|
}
|
|
};
|
|
struct MILCMD_DWM_REDIRECTION_ACCENTBLURRECTUPDATE : MILCMD {};
|
|
HRESULT STDMETHODCALLTYPE CTopLevelWindow_OnClipUpdated(DWM::CTopLevelWindow* This);
|
|
HRESULT STDMETHODCALLTYPE CTopLevelWindow_OnAccentPolicyUpdated(DWM::CTopLevelWindow* This);
|
|
HRESULT STDMETHODCALLTYPE CWindowList_UpdateAccentBlurRect(DWM::CWindowList* This, const MILCMD_DWM_REDIRECTION_ACCENTBLURRECTUPDATE* milCmd);
|
|
} |