diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index e172ea0aa6..7e0deb8b46 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -716,6 +716,14 @@ public: } } + // Give ownership of our handle to the caller. + HGLOBAL Release() + { + HGLOBAL h = m_hGlobal; + m_hGlobal = NULL; + return h; + } + // implicit conversion operator HGLOBAL() const { return m_hGlobal; }