thread updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-11-22 05:27:04 +00:00
parent 55e8450757
commit 892b89f3b7
10 changed files with 35 additions and 20 deletions

View File

@@ -207,7 +207,7 @@ bool wxBitmapCheckBox::Create(wxWindow *parent, wxWindowID id, const wxBitmap *l
checkWidth = -1 ; checkWidth = -1 ;
checkHeight = -1 ; checkHeight = -1 ;
long msStyle = CHECK_FLAGS; // long msStyle = CHECK_FLAGS;
HWND wx_button = 0; // TODO: Create the bitmap checkbox HWND wx_button = 0; // TODO: Create the bitmap checkbox

View File

@@ -37,10 +37,6 @@
#include <string.h> #include <string.h>
#define INCL_DOS
#define INCL_PM
#include <os2.h>
#include "wx/os2/private.h" #include "wx/os2/private.h"
// wxDataObject is tied to OLE/drag and drop implementation, // wxDataObject is tied to OLE/drag and drop implementation,

View File

@@ -14,6 +14,7 @@
#endif #endif
#define INCL_PM #define INCL_PM
#define INCL_DOS
#include <os2.h> #include <os2.h>
#include "wx/window.h" #include "wx/window.h"
#include "wx/app.h" #include "wx/app.h"

View File

@@ -11,7 +11,7 @@
#include "wx/string.h" #include "wx/string.h"
#define INCL_PM #define INCL_PM
#include "os2.h" #define INCL_DOS
#include "wx/os2/private.h" #include "wx/os2/private.h"
#define NO_JOYGETPOSEX #define NO_JOYGETPOSEX

View File

@@ -22,13 +22,13 @@
# include <fstream> # include <fstream>
#endif #endif
#define INCL_DOS
#define INCL_PM
#define INCL_GPI
#include <os2.h>
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/utils.h" #include "wx/utils.h"
#define INCL_PM
#include <os2.h>
#include "wx/os2/pngread.h" #include "wx/os2/pngread.h"
extern "C" { extern "C" {

View File

@@ -239,6 +239,28 @@ void wxCondition::Broadcast()
} }
} }
// ----------------------------------------------------------------------------
// wxCriticalSection implementation
// ----------------------------------------------------------------------------
wxCriticalSection::wxCriticalSection()
{
}
wxCriticalSection::~wxCriticalSection()
{
}
void wxCriticalSection::Enter()
{
::DosEnterCritSec();
}
void wxCriticalSection::Leave()
{
::DosExitCritSec();
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxThread implementation // wxThread implementation
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -31,7 +31,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/timeb.h> #include <sys/timeb.h>
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// private functions // private functions
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -738,12 +738,16 @@ void wxDisplaySize(
{ {
HPS hpsScreen; HPS hpsScreen;
HDC hdcScreen; HDC hdcScreen;
LONG lWidth;
LONG lHeight;
hpsScreen = ::WinGetScreenPS(HWND_DESKTOP); hpsScreen = ::WinGetScreenPS(HWND_DESKTOP);
hdcScreen = ::GpiQueryDevice(hpsScreen); hdcScreen = ::GpiQueryDevice(hpsScreen);
::DevQueryCaps(hdcScreen, CAPS_WIDTH, 1L, (PLONG)pWidth); ::DevQueryCaps(hdcScreen, CAPS_WIDTH, 1L, &lWidth);
::DevQueryCaps(hdcScreen, CAPS_HEIGHT, 1L, (PLONG)pHeight); ::DevQueryCaps(hdcScreen, CAPS_HEIGHT, 1L, &lHeight);
DevCloseDC(hdcScreen); DevCloseDC(hdcScreen);
*pWidth = (int)lWidth;
*pHeight = (int)lHeight;
} }
bool wxDirExists( bool wxDirExists(

View File

@@ -25,10 +25,6 @@
#include "wx/os2/private.h" #include "wx/os2/private.h"
#define INCL_DOSPROCESS
#define INCL_DOSERRORS
#define INCL_DOS
#include <os2.h>
#define PURE_32 #define PURE_32
#include <upm.h> #include <upm.h>
#include <netcons.h> #include <netcons.h>

View File

@@ -20,9 +20,6 @@
#include "wx/os2/wave.h" #include "wx/os2/wave.h"
#include "wx/os2/private.h" #include "wx/os2/private.h"
#define INCL_DOS
#define INCL_PM
#include <os2.h>
#ifdef RECT #ifdef RECT
#undef RECT #undef RECT
#endif #endif