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, Menu, Control Types, ListView, TreeView, Control functions, MsgBox, FileSelect, DirSelect
Examples
See the ToolTip example on the GuiCreate page.