---
name: "HWNDToWindow"
section: "3"
platform: "macos"
package: "tcl"
version: "152"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/HWNDToWindow"
---

# 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

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
