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

Method FindGui

source/script_gui.cpp:972–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970
971
972GuiType *GuiType::FindGui(HWND aHwnd)
973{
974 // Check that this window is an AutoHotkey Gui.
975 ATOM atom = (ATOM)GetClassLong(aHwnd, GCW_ATOM);
976 if (atom != sGuiWinClass)
977 return NULL;
978
979 // Retrieve the GuiType object associated to it.
980 return (GuiType*)GetWindowLongPtr(aHwnd, GWLP_USERDATA);
981}
982
983
984GuiType *GuiType::FindGuiParent(HWND aHwnd)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected