---
name: "Tk_HWNDToWindow"
section: "3"
platform: "linux"
package: "tk"
version: "8.6.16-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Tk_HWNDToWindow"
---

# Tk\_HWNDToWindow(3)

Find Tk's window information for a Windows window

```

```

## NAME

Tk\_HWNDToWindow - Find Tk's window information for a Windows window

## SYNOPSIS

```
#include <tkPlatDecls.h>

Tk_Window
Tk_HWNDToWindow(hwnd)
```

## ARGUMENTS

- HWND *hwnd* (in)

  Windows handle for the window.

  ```

  ```

## DESCRIPTION

Given a Windows HWND window identifier, this procedure returns the corresponding Tk\_Window handle. If there is no Tk\_Window corresponding to *hwnd* then NULL is returned.

## KEYWORDS

Windows window id
