HwndRenderTargetProperties function

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Creates a D2D1_HWND_RENDER_TARGET_PROPERTIES structure.

Syntax


 WINAPI HwndRenderTargetProperties(
  _In_  HWND hwnd,
  _In_  D2D1_SIZE_U pixelSize = D2D1::Size(static_cast<UINT>(0), static_cast<UINT>(0)),
  _In_  D2D1_PRESENT_OPTIONS presentOptions = D2D1_PRESENT_OPTIONS_NONE
);

Parameters

hwnd [in]

Type: HWND

The HWND to which the render target issues the output from its drawing commands.

pixelSize [in]

Type: D2D1_SIZE_U

The size of the render target, in pixels. The default value is a D2D1_SIZE_U that has a width and height of 0.

presentOptions [in]

Type: D2D1_PRESENT_OPTIONS

A value that specifies whether the render target retains the frame after it is presented and whether the render target waits for the device to refresh before presenting. The default value is D2D1_PRESENT_OPTIONS_NONE.

Return value

Type:

A structure that contains the HWND, pixel size, and presentation options for an ID2D1HwndRenderTarget.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

D2d1helper.h

Library

D2d1.lib

DLL

D2d1.dll

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.