X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b45bca403a444acd41781a86153ad08e5a9e13cf..920b9675d9e4ae7f721bd6eeb85c184a74434f7b:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 8553ee68e2..e99ecaa4d2 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -1454,14 +1454,7 @@ void wxWindowOS2::SetDropTarget( wxDropTarget* pDropTarget ) { - if (m_dropTarget != 0) - { - m_dropTarget->Revoke(m_hWnd); - delete m_dropTarget; - } m_dropTarget = pDropTarget; - if (m_dropTarget != 0) - m_dropTarget->Register(m_hWnd); } // end of wxWindowOS2::SetDropTarget #endif @@ -3521,7 +3514,7 @@ bool wxWindowOS2::HandleCreate( bool wxWindowOS2::HandleDestroy() { wxWindowDestroyEvent vEvent((wxWindow*)this); - + vEvent.SetId(GetId()); (void)GetEventHandler()->ProcessEvent(vEvent); // @@ -3530,7 +3523,6 @@ bool wxWindowOS2::HandleDestroy() #if wxUSE_DRAG_AND_DROP if (m_dropTarget != NULL) { - m_dropTarget->Revoke(m_hWnd); delete m_dropTarget; m_dropTarget = NULL; }