HWND(3) Tk Library Procedures HWND(3)

```

```

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```
#include <tkPlatDecls.h>

HWND
Tk_GetHWND(window)

Window
Tk_AttachHWND(tkwin, hwnd)
```

# [ARGUMENTS](#ARGUMENTS)

Window *window* (in)

X token for window.

Tk\_Window *tkwin* (in)

Tk window for window.

HWND *hwnd* (in)

Windows HWND for window.

```
    
```

# [DESCRIPTION](#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](#KEYWORDS)

identifier, window

8.0 Tk

---

Document: Tk_AttachHWND(3) from tk 9.0.4-r2 (Chainguard OS)
Source: https://downloads.sourceforge.net/sourceforge/tcl/tk9.0.4-src.tar.gz
