]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/region.cpp
#ifdef'd out some parts for non-supported systems.
[wxWidgets.git] / src / msw / region.cpp
index b5e7227e1ad3951a61ba4ce5658f639f280749a1..a65999c240960adcb9fa3c58e008ec679ced167c 100644 (file)
@@ -36,6 +36,7 @@ class WXDLLEXPORT wxRegionRefData : public wxGDIRefData {
 public:
        wxRegionRefData(void)
        {
+        m_region = 0;
        }
 
        wxRegionRefData(const wxRegionRefData& data)
@@ -77,6 +78,12 @@ wxRegion::wxRegion(void)
     M_REGION = ::CreateRectRgn(0, 0, 0, 0);
 }
 
+wxRegion::wxRegion(WXHRGN hRegion)
+{
+    m_refData = new wxRegionRefData;
+    M_REGION = (HRGN) hRegion;
+}
+
 wxRegion::wxRegion(long x, long y, long w, long h)
 {
     m_refData = new wxRegionRefData;