X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c86f1403c3737c07d58676a203f4707942684a01..eeccd5d94ce6b11f36af95db4ac528a2e2e0c4c5:/src/msw/region.cpp diff --git a/src/msw/region.cpp b/src/msw/region.cpp index dc55e46bff..e26d294ce7 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -1,7 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// -// File: region.cpp +// Name: msw/region.cpp // Purpose: Region handling for wxWindows/X11 // Author: Markus Holzem +// Modified by: // Created: Fri Oct 24 10:46:34 MET 1997 // RCS-ID: $Id$ // Copyright: (c) 1997 Julian Smart and Markus Holzem @@ -12,6 +13,7 @@ #pragma implementation "region.h" #endif +// For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -286,6 +288,14 @@ wxRegionContain wxRegion::Contains(const wxRect& rect) const return Contains(x, y, w, h); } +// Get internal region handle +WXHRGN wxRegion::GetHRGN() const +{ + if (!m_refData) + return (WXHRGN) 0; + return (WXHRGN) M_REGION; +} + /////////////////////////////////////////////////////////////////////////////// // // // wxRegionIterator //