---
name: "IdToWindow"
section: "3tk"
platform: "linux"
package: "tk8.3-doc"
version: "8.3.5-14"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/IdToWindow/3tk"
---

# IdToWindow(3tk)

Find Tk's window information for an X window

```

```

## NAME

Tk\_IdToWindow - Find Tk's window information for an X window

## SYNOPSIS

```
#include <tk.h>

Tk_Window
Tk_IdToWindow(display, window)
```

## ARGUMENTS

- Display *\*display* (in)

  X display containing the window.

- Window *window* (in)

  X id for window.

  ```

  ```

## DESCRIPTION

Given an X window identifier and the X display it corresponds to, this procedure returns the corresponding Tk\_Window handle. If there is no Tk\_Window corresponding to *window* then NULL is returned.

## KEYWORDS

X window id
