SetWindowCompositionAttribute function
Sets the current value of a specified Desktop Window Manager (DWM) attribute applied to a window.
Syntax
BOOL SetWindowCompositionAttribute(
HWND hwnd,
[IN] const WINDOWCOMPOSITIONATTRIBDATA* pwcad
);
Parameters
hwnd
An HWND specifying the handle to the window for which the attribute value is to be set.
pwcad
A pointer to a WINDOWCOMPOSITIONATTRIBDATA structure describing which attribute to set and its new value.
Return value
TRUE if the function succeeds; otherwise, FALSE.
Remarks
The use of this API is not recommended. Use DwmSetWindowAttribute instead.
This function has no associated import library or header file; you must call it using the LoadLibrary and GetProcAddress functions. The API is exported from user32.dll.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | None supported |
End of client support | Windows 7 |
Header | N/A |
DLL | user32.dll |
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기