X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6113e3a52d1c1c486b3a31cb22b59e2d9555b2d..eef1a0cc63093cdffdc0f718c80f413c33c0562d:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 3d9a48d18a..d79bbed42e 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -166,6 +166,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 +176,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 +338,7 @@ inline RECT wxGetWindowRect(HWND hwnd) RECT rect; if ( !::GetWindowRect(hwnd, &rect) ) - { wxLogLastError(_T("GetWindowRect")); - } return rect; } @@ -347,9 +348,7 @@ inline RECT wxGetClientRect(HWND hwnd) RECT rect; if ( !::GetClientRect(hwnd, &rect) ) - { wxLogLastError(_T("GetClientRect")); - } return rect; } @@ -505,9 +504,7 @@ public: : m_hdc(hdc) { if ( !::SelectClipRgn(hdc, hrgn) ) - { wxLogLastError(_T("SelectClipRgn")); - } } ~HDCClipper() @@ -536,9 +533,7 @@ private: { m_modeOld = ::SetMapMode(hdc, mm); if ( !m_modeOld ) - { wxLogLastError(_T("SelectClipRgn")); - } } ~HDCMapModeChanger() @@ -567,17 +562,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 +590,7 @@ public: { m_ptr = GlobalLock(hGlobal); if ( !m_ptr ) - { wxLogLastError(_T("GlobalLock")); - } } ~GlobalPtrLock()