| 7647 | |
| 7648 | |
| 7649 | void GuiType::Cancel() |
| 7650 | { |
| 7651 | if (mHwnd) |
| 7652 | { |
| 7653 | ShowWindow(mHwnd, SW_HIDE); |
| 7654 | VisibilityChanged(); // This may Release() and indirectly Destroy() the Gui. |
| 7655 | } |
| 7656 | // If this Gui was the last thing keeping the script running, exit the script: |
| 7657 | g_script.ExitIfNotPersistent(EXIT_CLOSE); |
| 7658 | } |
| 7659 | |
| 7660 | |
| 7661 |
no test coverage detected