Computes the region for a regular or partially transparent background that is bounded by a specified rectangle
#include <WinAPITheme.au3>
_WinAPI_GetThemeBackgroundRegion ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT )
$hTheme | Handle to a window's specified theme data. |
$iPartID | The part that contains the region. |
$iStateID | The state of the part. |
$hDC | Handle to the device context to draw into. |
$tRECT | $tagRECT structure that contains the specified rectangle used to compute the region. |
Success: | Handle to the computed region. |
Failure: | Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code. |
The region handle that is returned by this function should be released when it is no longer needed,
using _WinAPI_DeleteObject().
Search GetThemeBackgroundRegion in MSDN Library.