void WinPersistTextClose(void) { TBOOLEAN window_opened = WinWindowOpened(); #ifdef WXWIDGETS window_opened |= wxt_window_opened(); #endif if (!window_opened && (textwin.hWndParent != NULL) && !IsWindowVisible(textwin.hWndParent)) PostMessage(textwin.hWndParent, WM_CLOSE, 0, 0); }
/* Note: This routine is used to handle "persist". Do not test for qt windows here since they run in a separate process */ TBOOLEAN WinAnyWindowOpen(void) { TBOOLEAN window_opened = WinWindowOpened(); #ifdef WXWIDGETS window_opened |= wxt_window_opened(); #endif #ifdef HAVE_LIBCACA window_opened |= CACA_window_opened(); #endif return window_opened; }