GetWindowCompositionFlags (Compact 7)
3/12/2014
This function returns composition flag values that control the opacity capabilities of the window. You can set flags to use varying levels of opacity for UI elements in the window, change the TrueColor technology mode of the entire window, or display video playback on the window.
Syntax
DWORD WINAPI GetWindowCompositionFlags(
HWND hwnd
);
Parameters
- hwnd
[in] Handle to the window to query composition flag values.
Return Value
Returns one or more composition flag values, described in the following table.
Flag | Value | Description |
---|---|---|
WCF_ALPHATRANSPARENCY |
0x00000001 |
Adds information about the alpha channel to the window back buffer so that transparency information is composed separately for each pixel. When you set this flag, you must also notify the application and make sure to draw valid RGBA values into any window device context that you use in graphics programming. |
WCF_TRUECOLOR |
0x00000002 |
Forces the window back buffer into TrueColor technology mode. TrueColor technology mode supports 24 bits per pixel (bpp) or 32 bpp and draws content using a larger range of color values on TrueColor displays. |
Remarks
You can create visual effects by combining and overlapping multiple windows that contain UI elements of varying degrees of opacity. For example, you can create the appearance of a semi-transparent UI that overlaps a background window.
Requirements
Header |
CompositorAPI.h, |
sysgen |
SYSGEN_COMPOSITION |
See Also
Reference
Window Compositor Functions
Window Functions
SetWindowCompositionFlags