Windows Dev Center

IDCompositionDesktopDevice interface

An application must use the IDCompositionDesktopDevice interface in order to use DirectComposition in a Win32 desktop application. This interface allows the application to connect a visual tree to a window and to host layered child windows for composition

When to implement

Client applications do not implement the IDCompositionDesktopDevice interface; custom implementations are not supported.

Members

The IDCompositionDesktopDevice interface inherits from IDCompositionDevice2. IDCompositionDesktopDevice also has these types of members:

Methods

The IDCompositionDesktopDevice interface has these methods.

MethodDescription
CreateSurfaceFromHandle

Creates a new composition surface object that wraps an existing composition surface.

CreateSurfaceFromHwnd

Creates a wrapper object that represents the rasterization of a layered window, and that can be associated with a visual for composition.

CreateTargetForHwnd

Creates a composition target object that is bound to the window that is represented by the specified window handle.

 

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Dcomp.h

Library

Dcomp.lib

DLL

Dcomp.dll

See also

IDCompositionDevice2

 

 

Community Additions

ADD
Show:
© 2015 Microsoft