GuiCtrlFromHwnd

Retrieves the GuiControl object of a GUI control associated with the specified HWND.

GuiObj := GuiCtrlFromHwnd(Hwnd)

Parameters

Hwnd
The window handle (HWND) of a GUI control. Such control could be created with Gui.Add.

Return Value

Returns a GuiControl object. This object provides methods and properties for modifying GUI controls and retrieving information about them.

Remarks

For example, a HWND of a GUI control can be retrieved via GuiCtrl.Hwnd, MouseGetPos or OnMessage.

Related

GuiCreate, Gui object, GuiControl object, GuiFromHwnd, Control Types, ListView, TreeView, Menu object, Control functions, MsgBox, FileSelect, DirSelect

Examples

See the ToolTip example on the Gui object page.