MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / BIF_DECL

Function BIF_DECL

source/script_gui.cpp:545–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543
544
545BIF_DECL(BIF_GuiFromHwnd)
546{
547 HWND hwnd = (HWND)ParamIndexToIntPtr(0);
548 BOOL recurse_parent = ParamIndexToOptionalBOOL(1, FALSE);
549
550 GuiType* gui = recurse_parent ? GuiType::FindGuiParent(hwnd) : GuiType::FindGui(hwnd);
551 if (gui)
552 {
553 gui->AddRef();
554 _f_return(gui);
555 }
556 _f_return_empty;
557}
558
559
560BIF_DECL(BIF_GuiCtrlFromHwnd)

Callers

nothing calls this directly

Calls 2

AddRefMethod · 0.45
FindControlMethod · 0.45

Tested by

no test coverage detected