| 982 | |
| 983 | |
| 984 | GuiType *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 | |
| 997 | ResultType GuiType::SetMenu(ExprTokenType &aParam) |
| 998 | { |
nothing calls this directly
no outgoing calls
no test coverage detected