X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409c9842c71df526bcfbf1cf5ce80067b09d4d97..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/os2/region.cpp?ds=sidebyside diff --git a/src/os2/region.cpp b/src/os2/region.cpp index cb637f96eb..58495d9a9e 100644 --- a/src/os2/region.cpp +++ b/src/os2/region.cpp @@ -44,8 +44,11 @@ public: // TODO } + + HRGN m_region; }; +#define M_REGION (((wxRegionRefData*)m_refData)->m_region) //----------------------------------------------------------------------------- // wxRegion @@ -224,11 +227,12 @@ bool wxRegion::Empty() const // Does the region contain the point (x,y)? wxRegionContain wxRegion::Contains(long x, long y) const { + bool bOK = FALSE; // temporary if (!m_refData) return wxOutRegion; // TODO. Return wxInRegion if within region. - if (0) + if (bOK) return wxInRegion; return wxOutRegion; } @@ -236,11 +240,12 @@ wxRegionContain wxRegion::Contains(long x, long y) const // Does the region contain the point pt? wxRegionContain wxRegion::Contains(const wxPoint& pt) const { + bool bOK = FALSE; // temporary if (!m_refData) return wxOutRegion; // TODO. Return wxInRegion if within region. - if (0) + if (bOK) return wxInRegion; else return wxOutRegion; @@ -249,11 +254,12 @@ wxRegionContain wxRegion::Contains(const wxPoint& pt) const // Does the region contain the rectangle (x, y, w, h)? wxRegionContain wxRegion::Contains(long x, long y, long w, long h) const { + bool bOK = FALSE; // temporary if (!m_refData) return wxOutRegion; // TODO. Return wxInRegion if within region. - if (0) + if (bOK) return wxInRegion; else return wxOutRegion;