#include "wx/msw/private.h"
+// For MB_TASKMODAL
+#ifdef __WXWINCE__
+#include "wx/msw/wince/missing.h"
+#endif
+
#if wxUSE_THREADS
#include "wx/thread.h"
wxEventLoopImpl::wxCatchAllResponse wxEventLoopImpl::OnCatchAll()
{
switch (::MessageBox(NULL,
- _T("An unhandled exception occurred. 'Abort' will terminate the program,\r\n"
- "'Retry' will close the current dialog, 'Ignore' will try to continue."),
+ _T("An unhandled exception occurred. 'Abort' will terminate the program,\r\n\
+'Retry' will close the current dialog, 'Ignore' will try to continue."),
_T("Unhandled exception"),
MB_ABORTRETRYIGNORE|MB_ICONERROR|MB_TASKMODAL))
{
// wxModalEventLoop depends on this (so we can't just use ON_BLOCK_EXIT or
// something similar here)
#if wxUSE_EXCEPTIONS
- bool retryAfterException;
+ bool retryAfterException = false;
do {
retryAfterException=false;
#endif