| 970 | |
| 971 | |
| 972 | GuiType *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 | |
| 984 | GuiType *GuiType::FindGuiParent(HWND aHwnd) |
nothing calls this directly
no outgoing calls
no test coverage detected