Share via


GetWindowOpacity (Compact 7)

3/12/2014

This function returns the degree of opacity for the specified window.

Syntax

BYTE WINAPI GetWindowOpacity(
    HWND hwnd
);

Parameters

  • hwnd
    [in] Handle to the window that has the requested opacity value.

Return Value

Returns the degree of opacity for the window. This value can range from 0 (completely transparent) to 255 (completely opaque).

Remarks

You can create visual effects by combining and overlapping multiple windows with different degrees of opacity.

Requirements

Header

CompositorAPI.h,
winuser.h

sysgen

SYSGEN_COMPOSITION

See Also

Reference

Window Compositor Functions
Window Functions
SetWindowOpacity