Share via


CHwndRenderTarget Class

A wrapper for ID2D1HwndRenderTarget.

class CHwndRenderTarget : public CRenderTarget;

Members

Public Constructors

Name

Description

CHwndRenderTarget::CHwndRenderTarget

Constructs a CHwndRenderTarget object from HWND.

Public Methods

Name

Description

CHwndRenderTarget::Attach

Attaches existing render target interface to the object

CHwndRenderTarget::CheckWindowState

Indicates whether the HWND associated with this render target is occluded.

CHwndRenderTarget::Create

Creates a render target associated with the window

CHwndRenderTarget::Detach

Detaches render target interface from the object

CHwndRenderTarget::GetHwnd

Returns the HWND associated with this render target.

CHwndRenderTarget::GetHwndRenderTarget

Returns ID2D1HwndRenderTarget interface.

CHwndRenderTarget::ReCreate

Re-creates a render target associated with the window

CHwndRenderTarget::Resize

Changes the size of the render target to the specified pixel size

Public Operators

Name

Description

CHwndRenderTarget::operator ID2D1HwndRenderTarget*

Returns ID2D1HwndRenderTarget interface.

Protected Data Members

Name

Description

CHwndRenderTarget::m_pHwndRenderTarget

A pointer to an ID2D1HwndRenderTarget object.

Inheritance Hierarchy

CObject

CRenderTarget

CHwndRenderTarget

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes