#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/app.h"
+#include "wx/bitmap.h"
+#include "wx/dcmemory.h"
#endif
#include "wx/dcprint.h"
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)
void wxDC::DrawIcon(const wxIcon& icon, long x, long y)
{
+#if defined(__WIN32__) && !defined(__SC__)
+ ::DrawIconEx((HDC) m_hDC, XLOG2DEV(x), YLOG2DEV(y), (HICON) icon.GetHICON(),
+ icon.GetWidth(), icon.GetHeight(), 0, 0, DI_NORMAL);
+#else
::DrawIcon((HDC) m_hDC, XLOG2DEV(x), YLOG2DEV(y), (HICON) icon.GetHICON());
+#endif
+
CalcBoundingBox(x, y);
CalcBoundingBox(x+icon.GetWidth(), y+icon.GetHeight());
}
#endif
#endif
+#ifndef __WIN16__
if (ret <= 0)
{
DWORD lastError = GetLastError();
wxDebugMsg("wxDC::StartDoc failed with error: %d\n", lastError);
}
+#endif
+
return (ret > 0);
}