Tcl8.6.14/Tk8.6.14 Documentation > Tk C API, version 8.6.14 > IdToWindow

Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API


Tk_IdToWindow — Find Tk's window information for an X window


#include <tk.h>
Tk_IdToWindow(display, window)


Display *display (in)
X display containing the window.

Window window (in)
X id for window.


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.


X window id
Copyright © 1995-1996 Sun Microsystems, Inc.