// Author: David Webster
// Modified by:
// Created: 20.08.2003 (extracted from os2/utils.cpp)
-// RCS-ID: $Id$
// Copyright: (c) David Webster
-// License: wxWindows licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
#include "wx/apptrait.h"
#include "wx/os2/private/timer.h"
+#include "wx/evtloop.h"
#include "wx/os2/private.h" // includes <windows.h>
// implementation
// ============================================================================
+// Emit a beeeeeep
+void wxBell()
+{
+ DosBeep(1000,1000); // 1kHz during 1 sec.
+}
+
// ----------------------------------------------------------------------------
// functions to work with .INI files
// ----------------------------------------------------------------------------
void wxEndBusyCursor()
{
wxCHECK_RET( gs_wxBusyCursorCount > 0
- ,_T("no matching wxBeginBusyCursor() for wxEndBusyCursor()")
+ ,wxT("no matching wxBeginBusyCursor() for wxEndBusyCursor()")
);
if (--gs_wxBusyCursorCount == 0)
}
else
{
- wxFAIL_MSG(_T("pWnd==NULL !!!"));
+ wxFAIL_MSG(wxT("pWnd==NULL !!!"));
return false;//*** temporary?
}
}
return new wxOS2TimerImpl(timer);
}
+wxEventLoopBase* wxGUIAppTraits::CreateEventLoop()
+{
+ return new wxEventLoop;
+}
// ---------------------------------------------------------------------------
// window information functions
::GpiSetBitmap(hPS, NULLHANDLE);
::GpiDestroyPS(hPS);
::DevCloseDC(hDC);
- if (vNewBmp.Ok())
+ if (vNewBmp.IsOk())
return(vNewBmp);
return(wxNullBitmap);
} // end of wxDisableBitmap