while ( loop->Pending() )
loop->Dispatch();
snippet in console apps since wxConsoleEventLoop::Dispatch calls GetNextMessage() (see also the TimerEventTestCase cppunit).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59636
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxMSWEventLoopBase::GetNextMessage(WXMSG* msg)
{
bool wxMSWEventLoopBase::GetNextMessage(WXMSG* msg)
{
- wxCHECK_MSG( IsRunning(), false, _T("can't get messages if not running") );
-
const BOOL rc = ::GetMessage(msg, NULL, 0, 0);
if ( rc == 0 )
const BOOL rc = ::GetMessage(msg, NULL, 0, 0);
if ( rc == 0 )