X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3572173c014d7a886bdb188e9238bae099d30755..6c00e46fa83e3a9c0e76a76f15522a10b3a5c67f:/include/wx/msw/region.h diff --git a/include/wx/msw/region.h b/include/wx/msw/region.h index 3955305427..4349debda6 100644 --- a/include/wx/msw/region.h +++ b/include/wx/msw/region.h @@ -18,6 +18,7 @@ #include "wx/list.h" #include "wx/gdiobj.h" +#include "wx/gdicmn.h" class WXDLLEXPORT wxRect; class WXDLLEXPORT wxPoint; @@ -101,6 +102,9 @@ public: bool Combine(long x, long y, long width, long height, wxRegionOp op); bool Combine(const wxRegion& region, wxRegionOp op); bool Combine(const wxRect& rect, wxRegionOp op); + + // Get internal region handle + WXHRGN GetHRGN() const; }; class WXDLLEXPORT wxRegionIterator : public wxObject { @@ -113,8 +117,11 @@ public: void Reset(void) { m_current = 0; } void Reset(const wxRegion& region); - operator bool (void) const { return m_current < m_numRects; } - bool HaveRects(void) const { return m_current < m_numRects; } +#ifndef __SALFORDC__ + operator bool (void) const { return (m_current < m_numRects); } +#endif + + bool HaveRects(void) const { return (m_current < m_numRects); } void operator ++ (void); void operator ++ (int);