* Close all children a window might have in a head-recursive manner * @param wc Window class of the window to remove; #WC_INVALID if class does not matter */
| 1075 | * @param wc Window class of the window to remove; #WC_INVALID if class does not matter |
| 1076 | */ |
| 1077 | void Window::CloseChildWindows(WindowClass wc) const |
| 1078 | { |
| 1079 | Window *child = this->FindChildWindow(wc); |
| 1080 | while (child != nullptr) { |
| 1081 | child->Close(); |
| 1082 | child = this->FindChildWindow(wc); |
| 1083 | } |
| 1084 | } |
| 1085 | |
| 1086 | |
| 1087 | /** |
no test coverage detected