Function Reference


_WinAPI_DwmSetWindowAttribute

Sets the value of the specified attributes for non-client rendering to apply to the window

#include <WinAPIGdi.au3>
_WinAPI_DwmSetWindowAttribute ( $hWnd, $iAttribute, $iData )

Parameters

$hWnd The window handle to apply the given attribute.
$iAttribute The attribute to apply to the window. This parameter can be one of the following values:
    $DWMWA_NCRENDERING_POLICY
    $DWMWA_TRANSITIONS_FORCEDISABLED
    $DWMWA_ALLOW_NCPAINT
    $DWMWA_NONCLIENT_RTL_LAYOUT
    $DWMWA_FORCE_ICONIC_REPRESENTATION
    $DWMWA_FLIP3D_POLICY

Windows 7 or later
    $DWMWA_HAS_ICONIC_BITMAP
    $DWMWA_DISALLOW_PEEK
    $DWMWA_EXCLUDED_FROM_PEEK
$iData The value of the attribute.

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

Remarks

This function requires Windows Vista or later.

See Also

Search DwmSetWindowAttribute in MSDN Library.