Share via


CDCRenderTarget::BindDC

Binds the render target to the device context to which it issues drawing commands

BOOL BindDC(
   const CDC& dc,
   const CRect& rect
);

Parameters

  • dc
    The device context to which the render target issues drawing commands

  • rect
    The dimensions of the handle to a device context (HDC) to which the render target is bound

Return Value

If the method succeeds, it returns TRUE. Otherwise, it returns FALSE.

Requirements

Header: afxrendertarget.h

See Also

Reference

CDCRenderTarget Class