Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 |