---
name: "dtk_make_current_window"
section: "3"
platform: "linux"
package: "libdrawtk-dev"
version: "2.0-2.1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/dtk_make_current_window"
---

# dtk\_make\_current\_window(3)

Make a window the target of the next draws

## NAME

dtk\_make\_current\_window - Make a window the target of the next draws

## SYNOPSIS

**#include \<drawtk.h\>**

**void dtk\_make\_current\_window(dtk\_hwnd** *wnd***);**\

## DESCRIPTION

**dtk\_make\_current\_window**() makes the window referenced by *wnd* as the target of the next drawings. If *wnd* is *NULL* then the function unbind the current window for next drawings.

For a sucessfull call to **dtk\_draw\_shape**(), a window **should be** current.

The creation of the window **does not** make it current.

## RETURN VALUE

None.

## SEE ALSO

[**dtk\_create\_window**(3)](/dtk_create_window/3.md), [**dtk\_draw\_shape**(3)](/dtk_draw_shape/3.md)
