// Created: 09/17/99
// RCS-ID: $Id$
// Copyright: (c) David Webster
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
#include "wx/os2/private.h"
#include "wx/timer.h"
#include "wx/intl.h"
+#include "wx/apptrait.h"
#include <ctype.h>
#ifdef __EMX__
unsigned long ulMilliseconds
)
{
- ::DosSleep(ulMilliseconds/1000l);
+ ::DosSleep(ulMilliseconds);
}
void wxSleep(
DosBeep(1000,1000); // 1kHz during 1 sec.
}
-// Chris Breeze 27/5/98: revised WIN32 code to
-// detect WindowsNT correctly
-int wxGetOsVersion(
+int wxGUIAppTraits::GetOSVersion(
int* pMajorVsn
, int* pMinorVsn
)
if ((zHome = wxGetenv(_T("HOME"))) != NULL)
{
wxStrcpy(wxBuffer, zHome);
- Unix2DosFilename(wxBuffer);
+ wxUnix2DosFilename(wxBuffer);
wxStrcpy(zHome, wxBuffer);
delete[] wxBuffer;
return zHome;
return(wxNullBitmap);
} // end of wxDisableBitmap
-
+COLORREF wxColourToRGB(
+ const wxColour& rColor
+)
+{
+ return(OS2RGB(rColor.Red(), rColor.Green(), rColor.Blue()));
+} // end of wxColourToRGB