---
UID: NF:d2d1_1.ID2D1CommandSink.BeginDraw
title: ID2D1CommandSink::BeginDraw (d2d1_1.h)
description: Notifies the implementation of the command sink that drawing is about to commence.
old-location: direct2d\id2d1commandsink_begindraw.htm
tech.root: Direct2D
ms.assetid: acadc36f-5028-4f8f-93c6-7fbc0de3c3d5
ms.date: 12/05/2018
ms.keywords: BeginDraw, BeginDraw method [Direct2D], BeginDraw method [Direct2D],ID2D1CommandSink interface, ID2D1CommandSink interface [Direct2D],BeginDraw method, ID2D1CommandSink.BeginDraw, ID2D1CommandSink::BeginDraw, d2d1_1/ID2D1CommandSink::BeginDraw, direct2d.id2d1commandsink_begindraw
f1_keywords:
- d2d1_1/ID2D1CommandSink.BeginDraw
dev_langs:
- c++
req.header: d2d1_1.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 8 and Platform Update for Windows 7 [desktop apps \| UWP apps]
req.target-min-winversvr: Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps \| UWP apps]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: D2d1.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- D2d1.dll
api_name:
- ID2D1CommandSink.BeginDraw
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID2D1CommandSink::BeginDraw


## -description


Notifies the implementation of the command sink that drawing is about to commence.


## -parameters






## -returns



Type: <b>HRESULT</b>

This method always returns <b>S_OK</b>.
          




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d2d1_1/nf-d2d1_1-id2d1commandlist-stream">ID2D1CommandList::Stream</a>



<a href="https://docs.microsoft.com/windows/desktop/api/d2d1_1/nn-d2d1_1-id2d1commandsink">ID2D1CommandSink</a>



<a href="https://docs.microsoft.com/windows/desktop/api/d2d1/nf-d2d1-id2d1rendertarget-begindraw">ID2D1RenderTarget::BeginDraw</a>
 

 

