GuiCtrlFromHwnd

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

GuiControlObj := GuiCtrlFromHwnd(Hwnd)

Parameters

Hwnd

Type: Integer

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

Return Value

Type: Object

This function returns a reference to an existing 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

Gui.New, 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.