X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6113e3a52d1c1c486b3a31cb22b59e2d9555b2d..48c8439fdb5bbacf457f3a825bb5a73fe10dd8e7:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 3d9a48d18a..41209beb75 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -21,9 +21,6 @@ #include "wx/msw/microwin.h" #endif -// Include fixes for MSLU: -#include "wx/msw/mslu.h" - #include "wx/log.h" class WXDLLEXPORT wxFont; @@ -166,6 +163,7 @@ extern LONG APIENTRY _EXPORT // Intel, Visual Age. #if defined(__WXWINCE__) #define wxGetOSFHandle(fd) ((HANDLE)fd) + #define wxOpenOSFHandle(h, flags) ((int)wxPtrToUInt(h)) #elif defined(__CYGWIN__) #define wxGetOSFHandle(fd) ((HANDLE)get_osfhandle(fd)) #elif defined(__VISUALC__) \ @@ -175,6 +173,8 @@ extern LONG APIENTRY _EXPORT || defined(__MINGW32__) \ || (defined(__MWERKS__) && defined(__MSL__)) #define wxGetOSFHandle(fd) ((HANDLE)_get_osfhandle(fd)) + #define wxOpenOSFHandle(h, flags) (_open_osfhandle(wxPtrToUInt(h), flags)) + #define wx_fdopen _fdopen #endif // close the handle in the class dtor @@ -335,9 +335,7 @@ inline RECT wxGetWindowRect(HWND hwnd) RECT rect; if ( !::GetWindowRect(hwnd, &rect) ) - { wxLogLastError(_T("GetWindowRect")); - } return rect; } @@ -347,9 +345,7 @@ inline RECT wxGetClientRect(HWND hwnd) RECT rect; if ( !::GetClientRect(hwnd, &rect) ) - { wxLogLastError(_T("GetClientRect")); - } return rect; } @@ -505,9 +501,7 @@ public: : m_hdc(hdc) { if ( !::SelectClipRgn(hdc, hrgn) ) - { wxLogLastError(_T("SelectClipRgn")); - } } ~HDCClipper() @@ -536,9 +530,7 @@ private: { m_modeOld = ::SetMapMode(hdc, mm); if ( !m_modeOld ) - { wxLogLastError(_T("SelectClipRgn")); - } } ~HDCMapModeChanger() @@ -567,17 +559,13 @@ public: { m_hGlobal = ::GlobalAlloc(flags, size); if ( !m_hGlobal ) - { wxLogLastError(_T("GlobalAlloc")); - } } ~GlobalPtr() { if ( m_hGlobal && ::GlobalFree(m_hGlobal) ) - { wxLogLastError(_T("GlobalFree")); - } } // implicit conversion @@ -599,9 +587,7 @@ public: { m_ptr = GlobalLock(hGlobal); if ( !m_ptr ) - { wxLogLastError(_T("GlobalLock")); - } } ~GlobalPtrLock()