wxRegionRefData(const wxRegionRefData& data)
{
-#if defined(__WIN32__)
+#if defined(__WIN32__) && !defined(__WXMICROWIN__)
DWORD noBytes = ::GetRegionData(data.m_region, 0, NULL);
RGNDATA *rgnData = (RGNDATA*) new char[noBytes];
::GetRegionData(data.m_region, noBytes, rgnData);
*/
wxRegion::wxRegion()
{
- m_refData = new wxRegionRefData;
- M_REGION = ::CreateRectRgn(0, 0, 0, 0);
+ m_refData = (wxRegionRefData *)NULL;
}
wxRegion::wxRegion(WXHRGN hRegion)
wxRegion::wxRegion(const wxRect& rect)
{
m_refData = new wxRegionRefData;
- M_REGION = ::CreateRectRgn(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom());
+ M_REGION = ::CreateRectRgn(rect.x, rect.y, rect.x + rect.width, rect.y + rect.height);
}
/*