wxPaintDC -> wxDC in wxListCtrl; fixed compile problems in wxTreeCtrl (return
types in wxCHECK_MSG); compiles again for 16-bit Windows, though dialogs don't work; added generic notebook implementation (copied from wxMotif); fixed event handler arg in wxDirDialog; added preliminary wxImage reference; removed some constructors from documentation; fixed wxIniConfig compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -194,7 +194,11 @@ void wxDC::SetClippingRegion(const wxRegion& region)
|
||||
m_clipX2 = box.x + box.width;
|
||||
m_clipY2 = box.y + box.height;
|
||||
|
||||
#ifdef __WIN16__
|
||||
SelectClipRgn((HDC) m_hDC, (HRGN) region.GetHRGN());
|
||||
#else
|
||||
ExtSelectClipRgn((HDC) m_hDC, (HRGN) region.GetHRGN(), RGN_AND);
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxDC::DoClipping(WXHDC dc)
|
||||
@@ -887,11 +891,14 @@ bool wxDC::StartDoc(const wxString& message)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef __WIN16__
|
||||
if (ret <= 0)
|
||||
{
|
||||
DWORD lastError = GetLastError();
|
||||
wxDebugMsg("wxDC::StartDoc failed with error: %d\n", lastError);
|
||||
}
|
||||
#endif
|
||||
|
||||
return (ret > 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user