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

Method FindGuiParent

source/script_gui.cpp:984–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982
983
984GuiType *GuiType::FindGuiParent(HWND aHwnd)
985// Returns the GuiType of aHwnd or its closest ancestor which is a Gui.
986{
987 for ( ; aHwnd; aHwnd = GetParent(aHwnd))
988 {
989 if (GuiType *gui = FindGui(aHwnd))
990 return gui;
991 if (!(GetWindowLong(aHwnd, GWL_STYLE) & WS_CHILD))
992 break;
993 }
994 return NULL;
995}
996
997ResultType GuiType::SetMenu(ExprTokenType &aParam)
998{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected