int wxGUIEventLoop::DispatchTimeout(unsigned long timeout) { MSG msg; int rc = GetNextMessageTimeout(&msg, timeout); if ( rc != 1 ) return rc; ProcessMessage(&msg); return 1; }
int wxConsoleEventLoop::DispatchTimeout(unsigned long timeout) { MSG msg; int rc = GetNextMessageTimeout(&msg, timeout); if ( rc != 1 ) return rc; ProcessMessage(&msg); return !m_shouldExit; }