#include <ctype.h>
#ifdef __EMX__
#include <dirent.h>
-#else
-#include <direct.h>
#endif
#include "wx/log.h"
#include <errno.h>
#include <stdarg.h>
-#define INCL_DOS
-#define INCL_PM
-#define INCL_GPI
-#include <os2.h>
#define PURE_32
+
#ifndef __EMX__
#include <upm.h>
#include <netcons.h>
unsigned long ulMilliseconds
)
{
- ::DosSleep(ulMilliseconds);
+ ::DosSleep(ulMilliseconds/1000l);
}
void wxSleep(
*pHeight = (int)lHeight;
}
+void wxDisplaySizeMM(
+ int* pWidth
+, int* pHeight
+)
+{
+ HPS hpsScreen;
+ HDC hdcScreen;
+
+ hpsScreen = ::WinGetScreenPS(HWND_DESKTOP);
+ hdcScreen = ::GpiQueryDevice(hpsScreen);
+
+ if (pWidth)
+ ::DevQueryCaps( hdcScreen
+ ,CAPS_HORIZONTAL_RESOLUTION
+ ,1L
+ ,(PLONG)pWidth
+ );
+ if (pHeight)
+ ::DevQueryCaps( hdcScreen
+ ,CAPS_VERTICAL_RESOLUTION
+ ,1L
+ ,(PLONG)pHeight
+ );
+}
+
bool wxDirExists(
const wxString& rDir
)