---
name: "Tk_GetHWND"
section: "3tk"
platform: "linux"
package: "tk8.6-doc"
version: "8.6.16-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tk_GetHWND/3tk"
---

# Tk\_GetHWND(3tk)

manage interactions between the Windows handle and an X window

```

```

## NAME

Tk\_GetHWND, Tk\_AttachHWND - manage interactions between the Windows handle and an X window

## SYNOPSIS

```
#include <tkPlatDecls.h>

HWND
Tk_GetHWND(window)

Window
Tk_AttachHWND(tkwin, hwnd)
```

## ARGUMENTS

- Window *window* (in)

  X token for window.

- Tk\_Window *tkwin* (in)

  Tk window for window.

- HWND *hwnd* (in)

  Windows HWND for window.

  ```

  ```

## DESCRIPTION

**Tk\_GetHWND** returns the Windows HWND identifier for X Windows window given by *window*.

**Tk\_AttachHWND** binds the Windows HWND identifier to the specified Tk\_Window given by *tkwin*. It returns an X Windows window that encapsulates the HWND.

## KEYWORDS

identifier, window
